Blender Git Loki
Git Commits -> Revision 3e9f293
Revision 3e9f293 by Brecht Van Lommel (master) November 6, 2012, 19:59 (GMT) |
Cycles OSL: support for the trace(point pos, vector dir, ...) function, to trace rays from the OSL shader. The "shade" parameter is not supported currently, but attributes can be retrieved from the object that was hit using the getmessage("trace", ..) function. As mentioned in the OSL specification, this function can't be used instead of lighting, the main purpose is to allow shaders to "probe" nearby geometry, for example to apply a projected texture that can be blocked by geometry, apply more �??wear�? to exposed geometry, or make other ambient occlusion-like effects. http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/OSL#Trace Example .blend and render: http://www.pasteall.org/blend/17347 http://www.pasteall.org/pic/show.php?id=40066 |
Commit Details:
Full Hash: 3e9f2938f07feb7808186834f5975f7c2c211b15
SVN Revision: 51952
Parent Commit: 209cd25
Lines Changed: +240, -87