Skip to content

Commit 1608629

Browse files
erez-tomcopybara-github
authored andcommitted
Allow multiple textures per material in MJCF.
PiperOrigin-RevId: 654795013 Change-Id: I7a0ba31f6ea19e52ddee51b36df72d3d15e439dd
1 parent a495469 commit 1608629

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

dm_control/mjcf/schema.xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,53 @@
909909
<attribute name="hflip" type="keyword" valid_values="false true"/>
910910
<attribute name="vflip" type="keyword" valid_values="false true"/>
911911
</attributes>
912+
<children>
913+
<element name="rgb" repeated="false">
914+
<attributes>
915+
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
916+
</attributes>
917+
</element>
918+
<element name="normal" repeated="false">
919+
<attributes>
920+
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
921+
</attributes>
922+
</element>
923+
<element name="occlusion" repeated="false">
924+
<attributes>
925+
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
926+
</attributes>
927+
</element>
928+
<element name="roughness" repeated="false">
929+
<attributes>
930+
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
931+
</attributes>
932+
</element>
933+
<element name="metallic" repeated="false">
934+
<attributes>
935+
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
936+
</attributes>
937+
</element>
938+
<element name="opacity" repeated="false">
939+
<attributes>
940+
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
941+
</attributes>
942+
</element>
943+
<element name="emissive" repeated="false">
944+
<attributes>
945+
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
946+
</attributes>
947+
</element>
948+
<element name="orm" repeated="false">
949+
<attributes>
950+
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
951+
</attributes>
952+
</element>
953+
<element name="rgba" repeated="false">
954+
<attributes>
955+
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
956+
</attributes>
957+
</element>
958+
</children>
912959
</element>
913960
<element name="hfield" repeated="true">
914961
<attributes>

0 commit comments

Comments
 (0)