Skip to content

Commit

Permalink
Allow multiple textures per material in MJCF.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 654795013
Change-Id: I7a0ba31f6ea19e52ddee51b36df72d3d15e439dd
  • Loading branch information
erez-tom authored and copybara-github committed Jul 22, 2024
1 parent a495469 commit 1608629
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions dm_control/mjcf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,53 @@
<attribute name="hflip" type="keyword" valid_values="false true"/>
<attribute name="vflip" type="keyword" valid_values="false true"/>
</attributes>
<children>
<element name="rgb" repeated="false">
<attributes>
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
</attributes>
</element>
<element name="normal" repeated="false">
<attributes>
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
</attributes>
</element>
<element name="occlusion" repeated="false">
<attributes>
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
</attributes>
</element>
<element name="roughness" repeated="false">
<attributes>
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
</attributes>
</element>
<element name="metallic" repeated="false">
<attributes>
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
</attributes>
</element>
<element name="opacity" repeated="false">
<attributes>
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
</attributes>
</element>
<element name="emissive" repeated="false">
<attributes>
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
</attributes>
</element>
<element name="orm" repeated="false">
<attributes>
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
</attributes>
</element>
<element name="rgba" repeated="false">
<attributes>
<attribute name="texture" type="reference" required="false" reference_namespace="texture"/>
</attributes>
</element>
</children>
</element>
<element name="hfield" repeated="true">
<attributes>
Expand Down

0 comments on commit 1608629

Please sign in to comment.