~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to release/scripts/templates_osl/ramp_closure.osl

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
shader node_ramp_bsdf(
 
3
        float Exponent = 10.0,
 
4
        color Color1 = color(0.8, 0.0, 0.0),
 
5
        color Color2 = color(0.0, 0.8, 0.0),
 
6
        color Color3 = color(0.0, 0.0, 0.8),
 
7
        color Color4 = 0.1,
 
8
        color Color5 = 0.2,
 
9
        color Color6 = 0.3,
 
10
        color Color7 = 0.4,
 
11
        color Color8 = 0.5,
 
12
        normal Normal = N,
 
13
        output closure color Phong = 0,
 
14
        output closure color Diffuse = 0)
 
15
{
 
16
        color Color[8] = {Color1, Color2, Color3, Color4, Color5, Color6, Color7, Color8};
 
17
 
 
18
        Phong = phong_ramp(Normal, Exponent, Color);
 
19
        Diffuse = diffuse_ramp(Normal, Color);
 
20
}
 
 
b'\\ No newline at end of file'