Is it possible to apply a texture such that it does not wrap? Basically what I am trying to do is animate something like a smily face across a mesh and have it disappear instead of wrapping back again on the other side. The texture fills the entire uv space and I can’t change that in this particular use case. Below is an illustration of what I am after.
Use clamping instead of repeat for the wrapU / wrapV / wrapR properties:
mat.wrapU/V/R = BABYLON.Constants.TEXTURE_CLAMP_ADDRESSMODE
Thanks, I will give this a try.
Yep, that did the trick. Thanks.