home *** CD-ROM | disk | FTP | other *** search
- version BMRT 2.4.0b
- light rh_pointlight
- param color lightcolor 1 1 1
- param point from 0 0 0
- local string $_str_0 "current"
- local string $_str_1 "shader"
- local float intensity 0
- local float maxintensity 0
- initcode 1
- pushiv 0 0 0
- pushs $_str_0
- pushs $_str_1
- ptransformss
- popv from
- return
- code
- return_area
- pushif 2
- pushc lightcolor
- comp
- pushif 1
- pushc lightcolor
- comp
- pushif 0
- pushc lightcolor
- comp
- fmax
- fmax
- popf maxintensity
- pushif 20
- mulF maxintensity
- exp
- popf intensity
- pushv from
- illuminate1 0
- pushv L
- pushv L
- vdot
- pushc lightcolor
- divcf
- mulFc intensity
- popc Cl
- label 0
- return
-