Rename TextureTarget to SamplerType.

PiperOrigin-RevId: 911918372
Change-Id: If711d5909499b68316acd10a2de3a2d83436e18d
This commit is contained in:
Haroon Qureshi
2026-05-07 05:55:38 -07:00
committed by Copybara-Service
parent 75f1b81df7
commit 364c716f08
10 changed files with 17 additions and 16 deletions
@@ -259,7 +259,7 @@ static void UpdateGeomMaterial(mjrRenderable* renderable, const mjvGeom& geom,
// the programmatic UVs.
if (textures.color) {
if (mjrf_getTextureTarget(textures.color) == mjTEXTURE_2D) {
if (mjrf_getSamplerType(textures.color) == 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).