diff options
author | Thomas Dinges <blender@dingto.org> | 2013-05-18 18:36:03 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2013-05-18 18:36:03 +0400 |
commit | eaf493d323ce778c0b68a793b9cd6c813315aea3 (patch) | |
tree | 1868ee01db89af2e156c37837c46fa293405b508 /release/scripts | |
parent | 040279679c229fb6ca4d3c6424166492a02e5cc1 (diff) |
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).
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/templates_osl/westin_closure.osl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/release/scripts/templates_osl/westin_closure.osl b/release/scripts/templates_osl/westin_closure.osl new file mode 100644 index 00000000000..8d90f3aa306 --- /dev/null +++ b/release/scripts/templates_osl/westin_closure.osl @@ -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); +}
\ No newline at end of file |