Candy Layers
Author: | ain |
Date: | 06 Dec, 2010 |
Category: | effect |
Credits: | code based on wood shader by vux. many thanks to joreg and tonfilm for effects workshop at node10! |
Download
Description
Takes colors from 1D-texture and creates 3D layers of spherical shape (in world space) that go through the objects. Any feedback or ideas how to improve are appreciated ~
Comments
Comments are no longer accepted.Please create a new topic in the vvvv beta forum to discuss this contribution.
круто!
Hey, like this shader very much.
Found one little problem, if the object is in the center then we lose the layers, so couldn't use it initially with a skybox (Sphere+WithinView). Also stripes doesn't move on a static object.
Simple way to get around it (and nice feature) is just to add an offset for the Pixel Pos.
Then in the pixel shader part, replace:
by
Then you can change stripes without the need to move the object.
Thanks for the contrib :)
thanks bo )
hi flateric, i thought about transformation of the layers structure and wanted to do it with transform, to suppot rotation also (when i tryed other shapes besides the sphere), but i can't use these matrices so easily yet...
As rotation really doesn't make sense with a sphere, your solution is better, so i'll update it as you suggested, thank you *