blender/intern/cycles
Brecht Van Lommel 3e9f2938f0 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
2012-11-06 19:59:10 +00:00
..
app Integer socket support in Cycles. Int values are already supported natively in OSL, but were not used as actual ints on the SVM stack. This patch implements all the necessary functionality to support reading input values from RNA properties and convert between SHADER_SOCKET_INT and other types. 2012-10-20 13:11:45 +00:00
blender Cycles: 4 new nodes. 2012-11-06 19:59:02 +00:00
bvh style cleanup: trailing tabs & expand some non prefix tabs into spaces. 2012-10-21 05:46:41 +00:00
cmake Cleanup for OSL linking in cmake: Move cmake OSL library search and path definition from the cycles macro file to the top-level CMakeLists.txt. This makes the OSL_LIBRARIES and other variables accessible throughout Blender cmake scripts and especially in the creator module for linking libraries. 2012-09-10 06:18:20 +00:00
device Cycles: memory usage report 2012-11-05 08:04:57 +00:00
doc edits to cycles cmake files so cmake_consistency_check.py can parse them. 2011-11-08 20:27:37 +00:00
kernel Cycles OSL: support for the trace(point pos, vector dir, ...) function, to trace 2012-11-06 19:59:10 +00:00
render Cycles OSL: support for the trace(point pos, vector dir, ...) function, to trace 2012-11-06 19:59:10 +00:00
subd style cleanup: trailing tabs & expand some non prefix tabs into spaces. 2012-10-21 05:46:41 +00:00
util Cycles: 4 new nodes. 2012-11-06 19:59:02 +00:00
CMakeLists.txt Cycles OSL: some build system tweaks to avoid global includes and definitions, 2012-10-20 12:17:45 +00:00
SConscript Cycles: use mikktspace now for computing tangents from UV maps. This avoids ugly 2012-11-03 15:36:02 +00:00