Gandi Posted February 4, 2010 Posted February 4, 2010 I'm rendering my heightmap in its own render call. then i want to use its color buffer in another shader. i pass it to the shader and it works fine.. as long as the UV-coordinates dont get greater then 1 as soon as they are greater the last pixels of the texture get stretched along the rest of my "surface". is there some way of getting rid of that? thats how i do it: 1) SetShader(heightmapShader) SetBuffer(heightmapBuffer) DrawImage(.....) 2) BindTexture(GetColorBuffer(heightmapBuffer),....) Quote
Rick Posted February 4, 2010 Posted February 4, 2010 I'm not big on UV-coordinates but I always thought they had to be between 0 and 1? Quote
Niosop Posted February 4, 2010 Posted February 4, 2010 Naaa, the can be greater, they'll just either wrap (1.5 == .5) or clamp (1.5 == 1) Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender
Gandi Posted February 4, 2010 Author Posted February 4, 2010 hmm if i pass a texture as heightmap it wraps it and now it seems to clamp it.. is there a way of telling it what it shall do? Quote
Josh Posted February 4, 2010 Posted February 4, 2010 Disable the clamp on the heightmap texture while using it. See ClampTexture(). Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.