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

« back to all changes in this revision

Viewing changes to extern/qdune/shaders/spotlight.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
light spotlight
 
3
param uniform color lightcolor 1 1 1
 
4
param uniform point from 0.0 0.0 0.0
 
5
param uniform float conedeltaangle 0.0872664625997
 
6
param uniform float coneangle 0.523598775598
 
7
param uniform point to 0.0 0.0 0.0
 
8
param uniform float intensity 1
 
9
param uniform float beamdistribution 2
 
10
temp uniform vector A
 
11
temp uniform float cosoutside
 
12
temp uniform float cosinside
 
13
temp varying float cosangle
 
14
temp varying float atten
 
15
temp uniform float $1
 
16
temp varying float $2
 
17
temp varying float $3
 
18
temp uniform vector $4
 
19
const vector $5 0 0 1
 
20
const string $6 "shader"
 
21
const vector $7 0 0 0
 
22
global L Cl
 
23
codesegment @1
 
24
        ptocurr          from $6 $7
 
25
        ptocurr          to $6 $5
 
26
@1
 
27
        subvvv           $4 to from
 
28
        normalize        A $4
 
29
        cos              cosoutside coneangle
 
30
        subfff           $1 coneangle conedeltaangle
 
31
        cos              cosinside $1
 
32
        illuminate2      from A coneangle
 
33
        vdot             $2 L A
 
34
        length           $3 L
 
35
        divfff           cosangle $2 $3
 
36
        pow              $2 cosangle beamdistribution
 
37
        vdot             $3 L L
 
38
        divfff           atten $2 $3
 
39
        smoothstep       $2 cosoutside cosinside cosangle
 
40
        mulfff           atten atten $2
 
41
        mulfff           $2 atten intensity
 
42
        mulvvf           Cl lightcolor $2
 
43
        end_illuminate
 
44
        return