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

« back to all changes in this revision

Viewing changes to extern/qdune/shaders/metal.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
surface metal
 
2
param uniform float Ka 1
 
3
param uniform float Ks 1
 
4
param uniform float roughness 0.1
 
5
temp vector Nf
 
6
temp vector V
 
7
global N I Ci Cs Oi Os
 
8
temp vector $1
 
9
temp vector $2
 
10
codesegment
 
11
        normalize       Nf N
 
12
        faceforward1    Nf Nf I
 
13
        normalize       V I
 
14
        negvv           V V
 
15
        ambient         $1
 
16
        mulvvf          $1 $1 Ka
 
17
        specular        $2 Nf V roughness
 
18
        mulvvf          $2 $2 Ks
 
19
        addvvv          $1 $1 $2
 
20
        mulvvv          Ci Cs $1
 
21
        movvv           Oi Os
 
22
        mulvvv          Ci Ci Oi
 
23
        return