Add support for separate occlusion, roughness and metallic textures

PiperOrigin-RevId: 775632047
Change-Id: I40ba0b3d4ecb0c0a03534b8d93f85d279febbc9c
This commit is contained in:
Google DeepMind
2025-06-25 04:36:18 -07:00
committed by Copybara-Service
parent 81d16b7ccc
commit da831f5d3e
6 changed files with 134 additions and 38 deletions
@@ -4,6 +4,9 @@
<texture name="normal_tex" file="textures/normal.png" type="2d" />
<texture name="orm_tex" file="textures/orm.png" type="2d" />
<texture name="emissive_tex" file="textures/emissive.png" type="2d" />
<texture name="occlusion_tex" file="textures/occlusion.png" type="2d" />
<texture name="roughness_tex" file="textures/roughness.png" type="2d" />
<texture name="metallic_tex" file="textures/metallic.png" type="2d" />
<material name="material_red" rgba="0.8 0 0 1" />
<material name="material_texture" texture="diffuse_tex" />
<material name="material_metallic" rgba="0.8 0 0 1" metallic="0.6"/>
@@ -13,6 +16,11 @@
<layer texture="orm_tex" role="orm"/>
<layer texture="emissive_tex" role="emissive"/>
</material>
<material name="material_pbr_separate">
<layer texture="occlusion_tex" role="occlusion"/>
<layer texture="roughness_tex" role="roughness"/>
<layer texture="metallic_tex" role="metallic"/>
</material>
2d texture="diffuse" normal="normal" />
<mesh name="tetrahedron" vertex="0 0 0 1 0 0 0 1 0 0 0 1"/>
</asset>