forked from bartvdbraak/blender
OSL:
* Holdout shader is now working in OSL.
This commit is contained in:
parent
64a4a05d31
commit
0e3f3a0aef
@ -18,11 +18,9 @@
|
|||||||
|
|
||||||
#include "stdosl.h"
|
#include "stdosl.h"
|
||||||
|
|
||||||
shader node_background(
|
shader node_holdout(
|
||||||
color Color = color(0.8, 0.8, 0.8),
|
output closure color Holdout = holdout())
|
||||||
float Strength = 1.0,
|
|
||||||
output closure color Background = background())
|
|
||||||
{
|
{
|
||||||
Background = Color*Strength*background();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user