/usr/share/aqsis/shaders/surface/shinymetal.slx is in aqsis 1.8.2-3.
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 | surface
AQSIS_V 2
segment Data
USES 473119
param uniform float Ka
param uniform float Ks
param uniform float Kr
param uniform float roughness
param uniform string texturename
varying vector V
varying normal Nf
varying vector D
varying color env
segment Init
pushif 1
pop Ka
pushif 1
pop Ks
pushif 1
pop Kr
pushif 0.100000001
pop roughness
pushis ""
pop texturename
segment Code
pushv I
normalize
pop V
pushv V
pushv N
normalize
faceforward
pop Nf
pushv Nf
pushv V
reflect
pushis "world"
vtransform
pop D
S_CLEAR
pushis ""
pushv texturename
ness
S_GET
RS_PUSH
RS_GET
RS_JZ 1
pushv D
pushv texturename
pushif 0
cenvironment2
pushv Kr
mulfc
pop env
:1
RS_INVERSE
RS_JZ 0
pushif 0
setfc
pop env
:0
RS_POP
pushv Os
pop Oi
pushv env
pushv roughness
pushv V
negp
pushv Nf
specular
pushv Ks
mulfc
ambient
pushv Ka
mulfc
addcc
addcc
pushv Cs
pushv Os
mulcc
mulcc
pop Ci
|