silverlight - HLSL for getting cylinder effect -


i need write application silverlight 4 , need show images wrapped on cylinder. need hlsl code, wont effects of silverlight.
don't wont 3d libarries silverlight. need hlsl code changing pixels.
need image this alt text
thanks.

this seems effect want, may wish change 0.2 value increase or decrease effect or make adjustable in shader that's simple change do. i'd recommend shazzam if not using writing shaders wpf or silverlight.

sampler2d input : register(s0);  float4 main(float2 uv : texcoord) : color  {      float y = uv.y+(sin(uv.x*3.14) * lerp(-1,1,uv.y) * 0.2);     if(y < 0 || y > 1)         return float4(0,0,0,0);     else         return tex2d(input,float2(uv.x,y)); } 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -