Cycles - Light Path Length node output
Closed, ResolvedPublic


Dear Blender developers, I present you a very small patch for Cycles to be able to output the length of the ray being shaded in the LightPath node, it doesn't add any extra computation, is very simple no intrusive, making possible to create volume absorption dependent shaders, like glass absorption based on the distance the ray traveled inside the surface, or using the transmission path of the translucent shader to create a very fake sss effect like frozen ice shaders and others. very useful for use in combination with transmission light path.

I attached an screenshot but for more information about uses cases and illustrative screenshot you can visit my Blog entry about it:

You can find there a .blend file with the usage examples.

Patch against rev. 46120

Thanks for your attention.




Great ! I've been waiting for that features to create shore water like here:

Kind regards

Hopefully brecht can have a look at this, some really nice example results in the blenderartists thread

Patch committed, thanks!

Brecht Van Lommel (brecht) closed this task as "Resolved".May 2 2012, 7:04 PM