Initial commit.
This commit is contained in:
10
code/x_shaders/specular_static.psh
Normal file
10
code/x_shaders/specular_static.psh
Normal file
@@ -0,0 +1,10 @@
|
||||
xps.1.1
|
||||
|
||||
tex t0 ; normal map + gloss map
|
||||
|
||||
texm3x2pad t1, t0_bx2 ; u = t0 dot (t1) light vector
|
||||
texm3x2tex t2, t0_bx2 ; v = t0 dot (t2) half vector
|
||||
; fetch texture 4 at u, v
|
||||
; t2.a = (N dot H)^16
|
||||
|
||||
mul r0, t0.a, t2.a ; (N dot H)^16 * gloss value
|
||||
Reference in New Issue
Block a user