Add mjmodel support for textures with different number of channels.
PiperOrigin-RevId: 653974959 Change-Id: Ia280e0bdb21027646249f104f21bedee792ba7e5
This commit is contained in:
committed by
Copybara-Service
parent
70ac76bb4b
commit
e92af73cbf
@@ -262,11 +262,12 @@
|
||||
X( float, tendon, _rgba, ntendon, 4 )
|
||||
|
||||
#define MJMODEL_TEXTURE \
|
||||
X( int, tex_, type, ntex, 1 ) \
|
||||
X( int, tex_, height, ntex, 1 ) \
|
||||
X( int, tex_, width, ntex, 1 ) \
|
||||
X( int, tex_, adr, ntex, 1 ) \
|
||||
X( mjtByte, tex_, rgb, ntexdata, 1 )
|
||||
X( int, tex_, type, ntex, 1 ) \
|
||||
X( int, tex_, height, ntex, 1 ) \
|
||||
X( int, tex_, width, ntex, 1 ) \
|
||||
X( int, tex_, nchannel, ntex, 1 ) \
|
||||
X( int, tex_, adr, ntex, 1 ) \
|
||||
X( mjtByte, tex_, data, ntexdata, 1 )
|
||||
|
||||
#define MJMODEL_TUPLE \
|
||||
X( int, tuple_, adr, ntuple, 1 ) \
|
||||
|
||||
Reference in New Issue
Block a user