Use mjrTextureTarget type instead of filament type.
PiperOrigin-RevId: 910547104 Change-Id: I3e8aa30a72b9b5ec8c45e8fa6bac18353ce7b485
This commit is contained in:
committed by
Copybara-Service
parent
a5de6506eb
commit
68fdc439e4
@@ -420,8 +420,7 @@ static void UpdateGeomMaterial(Renderable& renderable, const mjvGeom& geom,
|
||||
// the programmatic UVs.
|
||||
|
||||
if (textures.color) {
|
||||
if (Texture::downcast(textures.color)->GetFilamentTexture()->getTarget() ==
|
||||
filament::Texture::Sampler::SAMPLER_2D) {
|
||||
if (Texture::downcast(textures.color)->GetTarget() == mjTEXTURE_2D) {
|
||||
// For 2D textures, `tex_repeat` specifies how many times the texture
|
||||
// image is repeated. The `tex_uniform` flag determines if the repetition
|
||||
// is applied at in object space (false) or in world space (true).
|
||||
|
||||
Reference in New Issue
Block a user