Fix #33183: cycles bump mapping was not executed with only an AO node in a material.

This commit is contained in:
Brecht Van Lommel
2012-11-15 14:08:46 +00:00
parent b89026a302
commit 1c410ab6e7
2 changed files with 3 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
#include "stdosl.h"
shader node_ambient_occlusion(
normal NormalIn = N,
color Color = color(0.8, 0.8, 0.8),
output closure color AO = ambient_occlusion())
{

View File

@@ -1578,6 +1578,8 @@ void HoldoutNode::compile(OSLCompiler& compiler)
AmbientOcclusionNode::AmbientOcclusionNode()
: ShaderNode("ambient_occlusion")
{
add_input("NormalIn", SHADER_SOCKET_NORMAL, ShaderInput::NORMAL, true);
add_input("Color", SHADER_SOCKET_COLOR, make_float3(0.8f, 0.8f, 0.8f));
add_output("AO", SHADER_SOCKET_CLOSURE);
}