Files
Mujoco_WASM/test/experimental/usd/plugins/mjcf/testdata/materials.xml
T
Google DeepMind bb1b2db3a9 Add support for normal maps in mujoco file format plugin
PiperOrigin-RevId: 771992722
Change-Id: Ifeae9e12f1071018112e697402361caa84095ff2
2025-06-16 06:01:18 -07:00

22 lines
792 B
XML

<mujoco model="mesh test">
<asset>
<texture name="diffuse_tex" file="textures/cube.png" type="2d" />
<texture name="normal_tex" file="textures/normal.png" type="2d" />
<material name="material_red" rgba="0.8 0 0 1" />
<material name="material_texture" texture="diffuse_tex" />
<material name="material_layered">
<layer texture="diffuse_tex" role="rgb"/>
<layer texture="normal_tex" role="normal"/>
</material>
2d texture="diffuse" normal="normal" />
<mesh name="tetrahedron" vertex="0 0 0 1 0 0 0 1 0 0 0 1"/>
</asset>
<worldbody>
<body name="test_body">
<geom material="material_red" type="mesh" mesh="tetrahedron"/>
<geom material="material_texture" type="mesh" mesh="tetrahedron"/>
</body>
</worldbody>
</mujoco>