Back to the Shapespark home page

[API] Texture offset

Hi,

is there a way to offset a single texture? I tried using the material.uniforms.uvMod property, but this seems to be applied globally to all textures.

3D scene - Google Chrome 2021-03-05 09-31-27

It is possible for a material: material.setUvOffsetAndScale(offsetX, offsetY, scaleX, scaleY).

1 Like

Thank you! That is what i was looking for.