Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2013-06-16 03:47:09 +0400
committerThomas Dinges <blender@dingto.org>2013-06-16 03:47:09 +0400
commit9e16c5a9e429e0d00801a4dd6ee71a8fbf6691f0 (patch)
tree7db98e3f90bc2a803cc9750d8982d6d1284a9aee /intern/cycles/render/nodes.cpp
parentd523d27e621f92c2fd9cb53f9dbbb62750bacc2c (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.cpp4
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)