~ubuntu-branches/ubuntu/maverick/blender/maverick

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Khashayar Naderehvandi, Khashayar Naderehvandi, Alessio Treglia
  • Date: 2009-01-22 16:53:59 UTC
  • mfrom: (14.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20090122165359-v0996tn7fbit64ni
Tags: 2.48a+dfsg-1ubuntu1
[ Khashayar Naderehvandi ]
* Merge from debian experimental (LP: #320045), Ubuntu remaining changes:
  - Add patch correcting header file locations.
  - Add libvorbis-dev and libgsm1-dev to Build-Depends.
  - Use avcodec_decode_audio2() in source/blender/src/hddaudio.c

[ Alessio Treglia ]
* Add missing previous changelog entries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# QDSLC version 0.0.1-alpha
2
 
surface veinedmarble
3
 
param uniform float warping 0.5
4
 
param uniform float Ka 0.5
5
 
param uniform float Kd 0.8
6
 
param uniform float veinfreq 1
7
 
param uniform float sharpness 8
8
 
param uniform color veincolor 0.6 0.5 0.1
9
 
param uniform float roughness 0.075
10
 
param uniform float Ks 0.4
11
 
param uniform color specularcolor 1 1 1
12
 
param uniform float veinlevels 2
13
 
param uniform float warpfreq 1
14
 
temp varying float i
15
 
temp varying point pp
16
 
temp varying float freq
17
 
temp varying float turbsum
18
 
temp varying float fw
19
 
temp uniform float amp
20
 
temp varying point offset
21
 
temp varying normal Nf
22
 
temp varying point PP
23
 
temp varying color Ct
24
 
temp varying float dPP
25
 
temp uniform float i_1
26
 
temp varying vector sum
27
 
temp varying float turb
28
 
temp varying float $1
29
 
temp varying float $2
30
 
temp varying float $3
31
 
temp varying vector $4
32
 
temp varying vector $5
33
 
temp varying vector $6
34
 
temp uniform vector $7
35
 
const float $8 0.5
36
 
const float $9 1
37
 
const float $10 1e-06
38
 
const float $11 3
39
 
const string $12 "shader"
40
 
const float $13 6
41
 
const float $14 0.2
42
 
const float $15 0.8
43
 
const float $16 2
44
 
const float $17 0.75
45
 
const float $18 0
46
 
global Ci Oi I N P Cs Os
47
 
codesegment
48
 
        ptransform1      PP $12 P
49
 
        area             $3 PP
50
 
        sqrt             $3 $3
51
 
        maxf             dPP $3 $10
52
 
        movff            amp $9
53
 
        movvv            pp PP
54
 
        movvf            sum $18
55
 
        movff            fw dPP
56
 
        movff            i_1 $18
57
 
@1
58
 
        jgeff            i_1 $13 @2
59
 
        noise3v          $6 pp
60
 
        mulvvf           $6 $6 $16
61
 
        movvf            $7 $9
62
 
        subvvv           $4 $6 $7
63
 
        smoothstep       $2 $14 $17 fw
64
 
        subfff           $2 $9 $2
65
 
        mulvvf           $4 $4 $2
66
 
        maddvvf          sum $4 amp
67
 
        mulfff           amp amp $8
68
 
        mulvvf           pp pp $16
69
 
        mulfff           fw fw $16
70
 
        addfff           i_1 i_1 $9
71
 
        jmp              @1
72
 
@2
73
 
        movvv            $4 sum
74
 
        maddvvf          PP $4 $8
75
 
        movff            turbsum $18
76
 
        movff            freq $9
77
 
        mulvvf           PP PP veinfreq
78
 
        movff            i $18
79
 
@3
80
 
        jgeff            i veinlevels @4
81
 
        mulvvf           $4 PP freq
82
 
        noise3f          $1 $4
83
 
        mulfff           $1 $16 $1
84
 
        subfff           $1 $1 $9
85
 
        mulfff           $2 dPP freq
86
 
        smoothstep       $2 $14 $17 $2
87
 
        subfff           $2 $9 $2
88
 
        mulfff           $1 $1 $2
89
 
        abs              turb $1
90
 
        subfff           $1 $9 turb
91
 
        smoothstep       $1 $15 $9 $1
92
 
        pow              $1 $1 sharpness
93
 
        divfff           turb $1 freq
94
 
        subfff           $1 $9 turbsum
95
 
        maddfff          turbsum $1 turb
96
 
        mulfff           freq freq $11
97
 
        mulvvf           PP PP $11
98
 
        addfff           i i $9
99
 
        jmp              @3
100
 
@4
101
 
        mixv             Ct Cs veincolor turbsum
102
 
        normalize        $4 N
103
 
        faceforward1     Nf $4 I
104
 
        ambient          $4
105
 
        mulvvf           $4 $4 Ka
106
 
        diffuse          $5 Nf
107
 
        maddvvf          $4 $5 Kd
108
 
        mulvvv           $4 Ct $4
109
 
        normalize        $5 I
110
 
        negvv            $5 $5
111
 
        specular         $5 Nf $5 roughness
112
 
        maddvvf          $4 $5 Ks
113
 
        movvv            Ci $4
114
 
        movvv            Oi Os
115
 
        mulvvv           Ci Ci Oi
116
 
        return