X Tutup
Skip to content

GLTF export: use ORM texture for occlusion/metallicRoughnessTexture if it exists#109845

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
nikitalita:gltf-use-orm-texture
Nov 4, 2025
Merged

GLTF export: use ORM texture for occlusion/metallicRoughnessTexture if it exists#109845
Repiteo merged 1 commit intogodotengine:masterfrom
nikitalita:gltf-use-orm-texture

Conversation

@nikitalita
Copy link
Contributor

Depends on #109475

The GLTF exporter is currently not using the ORM texture (i.e. from an ORMMaterial3D) for the occlusion/metallicRoughnessTexture if it exists; it only attempts to use the individual occlusion/roughness/metallic textures (i.e. from an StandardMaterial3D). This changes it such that if those individual textures don't exist, it attempts to use the ORM texture.

@nikitalita
Copy link
Contributor Author

Same here.

@aaronfranke
Copy link
Member

aaronfranke commented Sep 13, 2025

I think this PR is good at a glance but I want to give it a detailed review after other related PRs are merged (EDIT: Just PR #109475 remains).

@nikitalita nikitalita force-pushed the gltf-use-orm-texture branch from ff822f5 to 6334202 Compare October 5, 2025 23:59
@nikitalita nikitalita force-pushed the gltf-use-orm-texture branch 6 times, most recently from 770c52d to 5d414e6 Compare October 21, 2025 17:35
@nikitalita nikitalita force-pushed the gltf-use-orm-texture branch 2 times, most recently from fdca71d to 764d98b Compare November 2, 2025 20:48
@nikitalita nikitalita force-pushed the gltf-use-orm-texture branch from 764d98b to ec97115 Compare November 2, 2025 20:49
Copy link
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@aaronfranke aaronfranke moved this to Ready for review in Asset Pipeline Issue Triage Nov 3, 2025
@Repiteo Repiteo modified the milestones: 4.x, 4.6 Nov 3, 2025
@Repiteo Repiteo merged commit 0b7627b into godotengine:master Nov 4, 2025
20 checks passed
@github-project-automation github-project-automation bot moved this from Ready for review to Done in Asset Pipeline Issue Triage Nov 4, 2025
@Repiteo
Copy link
Contributor

Repiteo commented Nov 4, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

5 participants

X Tutup