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

« back to all changes in this revision

Viewing changes to extern/qdune/shaders/matte_illum.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
 
# diffuse() emulate with illuminance loop
2
 
surface matte
3
 
param uniform float Ka 1
4
 
param uniform float Kd 1
5
 
global P N I Ci Cs Oi Os L Cl
6
 
temp vector $1
7
 
temp vector $2
8
 
const float hpi 1.5707963268
9
 
temp float $3
10
 
temp vector $4
11
 
codesegment
12
 
        normalize    $1 N
13
 
        faceforward  $1 $1 I
14
 
        movvf        $4 0
15
 
@1
16
 
        illuminance2 P $1 hpi @2
17
 
        normalize    $2 L
18
 
        vdot         $3 $1 $2
19
 
        maddvvf      $4 Cl $3
20
 
        jmp          @1
21
 
@2
22
 
        mulvvf       $1 $4 Kd
23
 
        ambient      $2
24
 
        mulvvf       $2 $2 Ka
25
 
        addvvv       $1 $1 $2
26
 
        mulvvv       Ci Cs $1
27
 
        movvv        Oi Os
28
 
        mulvvv       Ci Ci Oi
29
 
        return