Texture Clamping

Hey Everyone,

I want to clamp a texture only on the x or y. In wrap mode I noticed there is only a clamp function that clamps both x and y.

Is there maybe a way to add this through scripting or is that impossible?

thx!

No one knows?

You could do it through a shader.

if(u > 1.0f || u < 0.0f || v > 1.0f || v < 0.0f)a = 0.0f;

You may also need access to the texture offset if you were going that route.