Fix for OSL 'Normal' node: the Direction parameter is of 'normal' type instead of generic 'vector'.
This commit is contained in:
@@ -1021,7 +1021,7 @@ void NormalNode::compile(SVMCompiler& compiler)
|
|||||||
|
|
||||||
void NormalNode::compile(OSLCompiler& compiler)
|
void NormalNode::compile(OSLCompiler& compiler)
|
||||||
{
|
{
|
||||||
compiler.parameter_vector("Direction", direction);
|
compiler.parameter_normal("Direction", direction);
|
||||||
compiler.add(this, "node_normal");
|
compiler.add(this, "node_normal");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -589,6 +589,38 @@ void OSLCompiler::parameter(const char *name, const Transform& tfm)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void OSLCompiler::parameter_array(const char *name, const float f[], int arraylen)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void OSLCompiler::parameter_color_array(const char *name, const float f[][3], int arraylen)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void OSLCompiler::parameter_vector_array(const char *name, const float f[][3], int arraylen)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void OSLCompiler::parameter_normal_array(const char *name, const float f[][3], int arraylen)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void OSLCompiler::parameter_point_array(const char *name, const float f[][3], int arraylen)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void OSLCompiler::parameter_array(const char *name, const int f[], int arraylen)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void OSLCompiler::parameter_array(const char *name, const char * const s[], int arraylen)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void OSLCompiler::parameter_array(const char *name, const Transform tfm[], int arraylen)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* WITH_OSL */
|
#endif /* WITH_OSL */
|
||||||
|
|
||||||
CCL_NAMESPACE_END
|
CCL_NAMESPACE_END
|
||||||
|
Reference in New Issue
Block a user