- Home /
Sprite deformation in shader?
I was wondering if there is any performant way in doing sprite derformation using shaders?
One idea I had was to subdivide the sprites mesh (which is only 4 vertices) in the tesselation shader to create as many vertices as I want, and then just use the vertex shader to deform the sprite, but I'm not sure thats performant or a good idea at all.
So anyone have a better idea? Just making the sprite "wavy" would be a good example of something I want to achieve. :-)
Your answer

Follow this Question
Related Questions
How to force the compilation of a shader in Unity? 5 Answers
TEXCOORD 0 1 2 3 for cg shader scripting? 1 Answer
Multiple tex2D commands in fragment shader needed, is there a workaround? 0 Answers
Custom ambient lighting color in a Cg shader 2 Answers
Can I read `CGPROGRAM` `#define` constants in `.cs` at runtime? 0 Answers