Adds color space to textures.
PiperOrigin-RevId: 761907261 Change-Id: Iec546d1d5907a15e57ef809ec31850640fc52915
This commit is contained in:
committed by
Copybara-Service
parent
62a9d5b98d
commit
3e9bc79b54
@@ -273,6 +273,7 @@ void mjs_defaultSkin(mjsSkin* skin) {
|
||||
void mjs_defaultTexture(mjsTexture* texture) {
|
||||
memset(texture, 0, sizeof(mjsTexture));
|
||||
texture->type = mjTEXTURE_CUBE;
|
||||
texture->colorspace = mjCOLORSPACE_AUTO;
|
||||
texture->rgb1[0] = texture->rgb1[1] = texture->rgb1[2] = 0.8;
|
||||
texture->rgb2[0] = texture->rgb2[1] = texture->rgb2[2] = 0.5;
|
||||
texture->random = 0.01;
|
||||
|
||||
Reference in New Issue
Block a user