~ubuntu-branches/ubuntu/intrepid/blender/intrepid-updates

« back to all changes in this revision

Viewing changes to extern/qdune/shaders/SHW_velvet.sqd

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-08-08 02:45:40 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080808024540-kkjp7ekfivzhuw3l
Tags: 2.46+dfsg-4
* Fix python syntax warning in import_dxf.py, which led to nasty output
  in installation/upgrade logs during byte-compilation, using a patch
  provided by the script author (Closes: #492280):
   - debian/patches/45_fix_python_syntax_warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# QDSLC version 0.0.1-alpha
 
2
surface SHW_velvet
 
3
param uniform float Ka 0.05
 
4
param uniform float Kd 0.1
 
5
param uniform float edginess 10
 
6
param uniform float roughness 0.1
 
7
param uniform float Ks 0.1
 
8
param uniform float backscatter 0.1
 
9
param uniform color sheen 0.25 0.25 0.25
 
10
temp varying vector Ln
 
11
temp varying vector H
 
12
temp varying normal Nf
 
13
temp varying float cosine
 
14
temp varying vector V
 
15
temp varying float sine
 
16
temp varying color shiny
 
17
temp varying float $1
 
18
temp varying vector $2
 
19
temp varying vector $3
 
20
temp uniform float $4
 
21
temp varying float $5
 
22
const float $6 0
 
23
const float $7 1.57079632679
 
24
const float $8 1.0
 
25
global Ci Oi Cl I L N P Cs Os
 
26
codesegment
 
27
        normalize        $3 N
 
28
        faceforward1     Nf $3 I
 
29
        normalize        $3 I
 
30
        negvv            V $3
 
31
        movvf            shiny $6
 
32
@1
 
33
        illuminance2     P Nf $7 @2
 
34
        normalize        Ln L
 
35
        vdot             $5 Ln V
 
36
        maxf             cosine $5 $6
 
37
        divfff           $4 $8 roughness
 
38
        pow              $5 cosine $4
 
39
        mulfff           $5 $5 backscatter
 
40
        mulvvf           $3 Cl $5
 
41
        maddvvv          shiny $3 sheen
 
42
        vdot             $5 Nf V
 
43
        maxf             cosine $5 $6
 
44
        mulfff           $5 cosine cosine
 
45
        subfff           $5 $8 $5
 
46
        sqrt             sine $5
 
47
        pow              $5 sine edginess
 
48
        vdot             $1 Ln Nf
 
49
        mulfff           $5 $5 $1
 
50
        mulvvf           $3 Cl $5
 
51
        maddvvv          shiny $3 sheen
 
52
        jmp              @1
 
53
@2
 
54
        movvv            Oi Os
 
55
        ambient          $3
 
56
        mulvvf           $3 $3 Ka
 
57
        diffuse          $2 Nf
 
58
        maddvvf          $3 $2 Kd
 
59
        mulvvv           $3 Os $3
 
60
        mulvvv           $3 $3 Cs
 
61
        addvvv           Ci $3 shiny
 
62
        return