- Home /
Question by
dacostaleo · Jul 31, 2014 at 01:14 PM ·
shaders
How to iterate a Shader Pass?
Hello. I have a question.
I'm trying to do a flur shader, and i need too "execute" the same shader pass multiple times "N times" (The shader pass take a value "N" and displace the vertex position pos = pos + normal * N;) Is possible to iterate in the subshader? something like:
SubShader{ for (int N = 0; N < max; N++){ Pass{} } }
Thanks! Leo
Comment
Your answer
Follow this Question
Related Questions
Allow 2D sprite to receive light from any direction and show on both sides 0 Answers
Is it possible to tell Unity not to auto-upgrade a shader? 2 Answers
Best way to create lights on the dark side of an object but not visible in light? 3 Answers
IClone character hair issue 2 Answers
How to clamp lighting values for cel-shading post 5.5? 0 Answers