diff options
author | Thomas Dinges <blender@dingto.org> | 2013-06-16 03:47:09 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-06-16 03:47:09 +0400 |
commit | 9e16c5a9e429e0d00801a4dd6ee71a8fbf6691f0 (patch) | |
tree | 7db98e3f90bc2a803cc9750d8982d6d1284a9aee /intern/cycles/render/nodes.cpp | |
parent | d523d27e621f92c2fd9cb53f9dbbb62750bacc2c (diff) |
Cycles / Blackbody node:
* First (brute force) implementation for SVM. This works and delivers the same result as OSL, but it's slow.
* Code inside svm_blackbody.h inspired by a patch by Philipp Oeser (#35698), thanks.
Ideas:
* Use a lookup table to perform the calculations on render/ level.
* Implement it as a RNA property only, and do the calculation like Sun/Sky precompute.
Diffstat (limited to 'intern/cycles/render/nodes.cpp')
-rw-r--r-- | intern/cycles/render/nodes.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp index d7a98bfba90..cd893652dac 100644 --- a/intern/cycles/render/nodes.cpp +++ b/intern/cycles/render/nodes.cpp @@ -2988,14 +2988,12 @@ BlackbodyNode::BlackbodyNode() void BlackbodyNode::compile(SVMCompiler& compiler) { -/* - ShaderInput *temperature in = input("Temperature"); + ShaderInput *temperature_in = input("Temperature"); ShaderOutput *color_out = output("Color"); compiler.stack_assign(temperature_in); compiler.stack_assign(color_out); compiler.add_node(NODE_BLACKBODY, temperature_in->stack_offset, color_out->stack_offset); -*/ } void BlackbodyNode::compile(OSLCompiler& compiler) |