/usr/share/aqsis/shaders/light/shadowspot.slx is in aqsis 1.8.1-4build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | lightsource
AQSIS_V 2
segment Data
USES 524384
param uniform float intensity
param uniform color lightcolor
param uniform point from
param uniform point to
param uniform float coneangle
param uniform float conedeltaangle
param uniform float beamdistribution
param uniform string shadowname
param uniform float samples
param uniform float width
param uniform float blur
param uniform float falloff
varying float atten
varying float cosangle
uniform point A
uniform float cosoutside
uniform float cosinside
segment Init
pushif 1
pop intensity
pushif 1
setfc
pop lightcolor
pushif 0
pushif 0
pushif 0
settp
pushis "current"
pushis "shader"
transform2
pop from
pushif 1
pushif 0
pushif 0
settp
pushis "current"
pushis "shader"
transform2
pop to
pushif 30
radians
pop coneangle
pushif 5
radians
pop conedeltaangle
pushif 2
pop beamdistribution
pushis ""
pop shadowname
pushif 16
pop samples
pushif 1
pop width
pushif 0
pop blur
pushif 2
pop falloff
segment Code
pushv from
pushv to
subpp
length
setfp
pushv from
pushv to
subpp
divpp
pop A
pushv coneangle
cos
pop cosoutside
pushv conedeltaangle
pushv coneangle
subff
cos
pop cosinside
:0
S_CLEAR
pushv coneangle
pushv A
pushv from
illuminate2
S_JZ 1
RS_PUSH
RS_GET
pushv L
length
pushv A
pushv L
dotpp
divff
pop cosangle
S_CLEAR
pushif 2
pushv falloff
eqff
S_GET
RS_PUSH
RS_GET
RS_JZ 3
pushv L
pushv L
dotpp
pushv beamdistribution
pushv cosangle
pow
divff
pop atten
:3
RS_INVERSE
RS_JZ 2
S_CLEAR
pushif 1
pushv falloff
eqff
S_GET
RS_PUSH
RS_GET
RS_JZ 5
pushif 2
pushv L
length
divff
pushv beamdistribution
pushv cosangle
pow
divff
pop atten
:5
RS_INVERSE
RS_JZ 4
pushv beamdistribution
pushv cosangle
pow
pop atten
:4
RS_POP
:2
RS_POP
pushv cosangle
pushv cosinside
pushv cosoutside
smoothstep
pushv atten
mulff
pop atten
pushv lightcolor
pushv intensity
pushv atten
mulff
mulfc
pop Cl
S_CLEAR
pushis ""
pushv shadowname
ness
S_GET
RS_PUSH
RS_GET
RS_JZ 6
pushv width
pushis "width"
pushv blur
pushis "blur"
pushv Ps
pushv shadowname
pushif 4
shadow
pushif 1
subff
setfc
pushv Cl
mulcc
pop Cl
:6
RS_POP
RS_POP
jmp 0
:1
|