View Single Post
Old 3rd June 2008, 17:12   #23
Flexi
wellspring of milk
Major Dude
 
Flexi's Avatar
 
Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Send a message via ICQ to Flexi
i don't mean to let the shader know where the shape is - i speak of letting the shader do, what the shape did before.

and i could also point you to the shader equation for mirroring on any axis - but it's even more fun to let you do it as homework (we can compare our results next weekend - this is plain geometry)

Quote:
any idea how to mirror(or even wrap) on one axis but not the other(wrap x, clamp y)?
getPixel(float2(frac(uv.x),saturate(uv.y))); ???

hf
Flexi is offline   Reply With Quote