HOW NOW SHADER COW CS 519 Shader Cow Project Christopher Moore
Details • 1) Render the Scene to the Scene Tex
Details • 2) Render the Advection with the Last Advection Tex
Details • 3) Blend the Scene Tex & Advection into the Next Advection Tex
Details • 4) Dump Next Advection Tex to Screen
Details • 5) Swap Advection Textures
Viola
Tweakable Parameters • Advection Distance • Typically one over texture size • Gradient Sampling Distance • Typically the same thing • Flip the Height Map? • Not technically correct but looks good • Transform from gradient to advection • Advect along gradient or along edges
Examples • Original Scene
Impressionist • Use the background texture for height map • Flip the height map • Advect along edges (don’t tell anyone, but it only works well with the dandelion background)
Pointillist • Use the background texture for height map • Flip the height map • Advect along gradient
Watercolor • Use the background texture for height map • Large gradient steps
Stained Glass • Use scene tex for height map • Advect against gradient
Cellular • Use last advect tex for height map • Advect against gradient
Glowing • Use last advect tex for height map • Advect along gradient