Allow multiple textures per material in MJCF.

PiperOrigin-RevId: 654795013
Change-Id: I418b72533484d00accaf801a342aa183e602a2d0
This commit is contained in:
Tom Erez
2024-07-22 09:56:58 -07:00
committed by Copybara-Service
parent e79efa60d6
commit 33e5960653
14 changed files with 474 additions and 106 deletions
+8 -3
View File
@@ -9969,6 +9969,11 @@ STRUCTS: Mapping[str, StructDecl] = dict([
type=ValueType(name='int'),
doc='width in pixels',
),
StructFieldDecl(
name='nchannel',
type=ValueType(name='int'),
doc='number of channels',
),
StructFieldDecl(
name='content_type',
type=PointerType(
@@ -10045,11 +10050,11 @@ STRUCTS: Mapping[str, StructDecl] = dict([
doc='name',
),
StructFieldDecl(
name='texture',
name='textures',
type=PointerType(
inner_type=ValueType(name='mjString'),
inner_type=ValueType(name='mjStringVec'),
),
doc='name of texture (empty: none)',
doc='names of textures (empty: none)',
),
StructFieldDecl(
name='texuniform',