Cycles / OSL:

* Added Westin Sheen and Westin Backscatter closures for testing, useful for Cloth like effects. 

Only available via OSL, added an example OSL shader to the Templates (Text Editor).
This commit is contained in:
Thomas Dinges
2013-05-18 14:36:03 +00:00
parent 040279679c
commit eaf493d323
8 changed files with 209 additions and 14 deletions

View File

@@ -0,0 +1,12 @@
shader node_westin_bsdf(
color Color = 0.8,
float Roughness = 0.5,
float Edginess = 0.2,
normal Normal = N,
output closure color Sheen = 0,
output closure color Backscatter = 0)
{
Sheen = Color * westin_sheen(Normal, Roughness);
Backscatter = Color * westin_backscatter(Normal, Edginess);
}