Skip to content

Commit

Permalink
Replace pow with exp
Browse files Browse the repository at this point in the history
  • Loading branch information
Parallellines0451 committed Nov 25, 2024
1 parent 7a81208 commit 3602154
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions win32_30_nv8/water/waterPS2.asm
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
def c20, 0.962339997, -0.194983006, 0.473434001, -0.480026007
def c21, -0.69591397, 0.457136989, -0.203345001, 0.620715976
def c22, -0.326211989, -0.405809999, -0.840143979, -0.0735799968
def c23, 2.7182818, 0, 0, 0
dcl_texcoord v0
dcl_texcoord1 v1
dcl_texcoord2 v2
Expand Down Expand Up @@ -735,9 +734,9 @@
pow r1.x, r0_abs.x, c3.w
add_sat r0.x, r1.x, c0.x
else
mul r0.x, r0.x, c11.w
pow r1.x, c23.x, r0.x
add_sat r0.x, c5.z, -r1.x
mul r0.x, r0.x, -c9.w
exp r0.x, r0.x
add_sat r0.x, c5.z, -r0.x
endif
add r0.w, -r0.w, c3.z
Expand Down

0 comments on commit 3602154

Please sign in to comment.