home *** CD-ROM | disk | FTP | other *** search
- regc4f( 5, %daycolor_r, %daycolor_g, %daycolor_b, %sunvisibility )
- regc4f( 7, %ambient_r, %ambient_g, %ambient_b, %ambient_a )
-
- pshader("
-
- ps_1_1
-
-
- tex t0 ;Tekstura obiektu np. drogi
- tex t1 ;RGB=kolor terenu, A=lightmapa terenu
-
- mad_sat r1.rgb, t1.a, c7, c7.a ;skalowanie oswietlenia (dodanie ambientu)
- +mul_sat r1.a, t0_bx2.a, c5.a ; maska do speculara
-
- mad_sat r0, r1.a, v1, t0 ;wyciecie speculara maska i dodanie do mapy koloru
-
- mul r1, r1, c5 ;wymnozenie oswietlenia przez kolor pory dnia/swiatla
-
- mul r0.rgb, r0, r1 ;mnozymy kolory przez oswietlenie
- +mov_x4_sat r0.a, t0.a
-
- ")
-
-