home *** CD-ROM | disk | FTP | other *** search
- version BMRT 2.4.0b
- surface rh_paintedplastic
- param float Ka 1
- param float Kd 0.5
- param float Ks 0.5
- param float roughness 0.1
- param color specularcolor 1 1 1
- param string texturename ""
- local string $_str_0 ""
- local normal Nf 0 0 0
- local vector V 0 0 0
- local color Ct 0 0 0
- initcode 5
- return
- code
- pushs $_str_0
- pushs texturename
- sne
- ifz 0
- pushif 0
- pushs texturename
- pushif 0
- pushif 0
- ctexture
- popc Ct
- jump 1
- label 0
- pushif 1
- cset Ct
- label 1
- return_area
- pushv I
- pushv N
- normalize
- faceforward
- popv Nf
- pushv I
- normalize
- negv
- popv V
- cpCC Os Oi
- pushf roughness
- pushv V
- pushv Nf
- specular
- mulCF specularcolor Ks
- mulcc
- pushv Nf
- diffuse
- mulFc Kd
- ambient
- mulFc Ka
- addcc
- mulCC Cs Ct
- mulcc
- addcc
- mulC Os
- popc Ci
- return
-