View Single Post
Old 04-13-11, 08:08 AM   #13
Seeadler
Pacific Aces Dev Team
 
Join Date: Mar 2001
Location: Northern Germany
Posts: 1,096
Downloads: 169
Uploads: 0


Default

Quote:
Originally Posted by Hans Witteman View Post
because we don't have access to the ocean shader it is hard coded.
This is the ocean pixel shader code used in SH3

Code:
    ps_1_1
    tex t0
    texbem t1, t0
    mad t1, t1, c0.w, c1.w
    dp3_sat r0, v0_bx2, t0
    lrp r0.xyz, r0.w, c0, c1
    lrp r0.xyz, v0.w, t1, r0
  + mov r0.w, t0.w

// approximately 6 instruction slots used (2 texture, 4 arithmetic)
Seeadler is offline   Reply With Quote