diff --git a/win32_30_nv8/deferred_lighting/deferred_lightingPS1.asm b/win32_30_nv8/deferred_lighting/deferred_lightingPS1.asm index ba70f4719..66e1bf43e 100644 --- a/win32_30_nv8/deferred_lighting/deferred_lightingPS1.asm +++ b/win32_30_nv8/deferred_lighting/deferred_lightingPS1.asm @@ -75,8 +75,8 @@ def c13, -0.326211989, -0.405809999, -0.840143979, -0.0735799968 def c20, 1.6666667, 0, 0, 0 // Reflection intensity multiplier def c21, 3, 2, 1, 0 // Console tree lighting constants - def c22, 0.01171875, 0.0234375, 0.02734375, 0 - def c23, 0.35, 0.5, 0.3333333, 0 + def c22, 0.012156862745098, 0.023921568627451, 0.027843137254902, 0 // 3.1, 6.1, 7.1 + def c23, 0.35, 0.5, 0.3333333, 0.0007843137254902 // ------------------------------------------------------ 1.0.4.0 Shadow Filter Constants ------------------------------------------------------- def c110, -0.25, 1, -1, 0 def c111, 0.159154937, 0.5, 6.28318548, -3.14159274 @@ -337,8 +337,9 @@ // ----------------------------------------------------------- Console Tree Lighting ------------------------------------------------------------ texld r21, v0, s6 add r21.yz, r21.x, -c22 - cmp r21.yz, -r21_abs, c3.x, c3.y - add_sat r21.x, r21.y, r21.z // masks 5 and 6 + add r21.yz, -r21_abs, c23.w + cmp r21.yz, r21, c3.x, c3.y + add_sat r21.x, r21.y, r21.z mov r21.y, c223.x add r21.y, r21.y, -c21.y cmp r21.y, -r21_abs.y, r21.x, c3.y // Console tree lighting toggle diff --git a/win32_30_nv8/deferred_lighting/deferred_lightingPS2.asm b/win32_30_nv8/deferred_lighting/deferred_lightingPS2.asm index ef6d9b1e2..7142f871c 100644 --- a/win32_30_nv8/deferred_lighting/deferred_lightingPS2.asm +++ b/win32_30_nv8/deferred_lighting/deferred_lightingPS2.asm @@ -76,8 +76,8 @@ def c16, -0.840143979, -0.0735799968, -0.69591397, 0.457136989 def c20, 1.6666667, 0, 0, 0 // Reflection intensity multiplier def c21, 3, 2, 1, 0 // Console tree lighting constants - def c22, 0.01171875, 0.0234375, 0.02734375, 0 - def c23, 0.35, 0.5, 0.3333333, 0 + def c22, 0.012156862745098, 0.023921568627451, 0.027843137254902, 0 // 3.1, 6.1, 7.1 + def c23, 0.35, 0.5, 0.3333333, 0.0007843137254902 // ------------------------------------------------------ 1.0.4.0 Shadow Filter Constants ------------------------------------------------------- def c110, -0.25, 1, -1, 0 def c111, 0.159154937, 0.5, 6.28318548, -3.14159274 @@ -338,8 +338,9 @@ // ----------------------------------------------------------- Console Tree Lighting ------------------------------------------------------------ texld r21, v0, s5 add r21.yz, r21.x, -c22 - cmp r21.yz, -r21_abs, c4.z, c4.w - add_sat r21.x, r21.y, r21.z // masks 5 and 6 + add r21.yz, -r21_abs, c23.w + cmp r21.yz, r21, c4.z, c4.w + add_sat r21.x, r21.y, r21.z mov r21.y, c223.x add r21.y, r21.y, -c21.y cmp r21.y, -r21_abs.y, r21.x, c4.w // Console tree lighting toggle @@ -371,7 +372,8 @@ texld r4, v0, s5 // add r4.x, -r4.x, c2.z add r20.xy, r4.x, -c22.xw - cmp r20.xy, -r20_abs.xy, c4.z, c4.w + add r20.xy, -r20_abs, c23.w + cmp r20.xy, r20, c4.z, c4.w add_sat r20.x, r20.x, r20.y add r4.x, r20.x, -c4.z // change wetness mask to include stencil 3 alongside 0 (since 3 is now used for the dithering mask) cmp r3.w, r4.x, r3.w, c0.x diff --git a/win32_30_nv8/deferred_lighting/deferred_lightingPS3.asm b/win32_30_nv8/deferred_lighting/deferred_lightingPS3.asm index c0fcf7550..4ee616531 100644 --- a/win32_30_nv8/deferred_lighting/deferred_lightingPS3.asm +++ b/win32_30_nv8/deferred_lighting/deferred_lightingPS3.asm @@ -48,8 +48,8 @@ def c4, 0.75, 0.25, 5, 10 def c20, 1.6666667, 0, 0, 0 // Reflection intensity multiplier def c21, 3, 2, 1, 0 // Console tree lighting constants - def c22, 0.01171875, 0.0234375, 0.02734375, 0 - def c23, 0.35, 0.5, 0.3333333, 0 + def c22, 0.012156862745098, 0.023921568627451, 0.027843137254902, 0 // 3.1, 6.1, 7.1 + def c23, 0.35, 0.5, 0.3333333, 0.0007843137254902 dcl_texcoord v0.xy dcl_texcoord1 v1 dcl_2d s0 @@ -61,8 +61,9 @@ texld r21, v0, s6 add r21.yz, r21.x, -c22 - cmp r21.yz, -r21_abs, c0.z, c0.w - add_sat r21.x, r21.y, r21.z // masks 5 and 6 + add r21.yz, -r21_abs, c23.w + cmp r21.yz, r21, c0.z, c0.w + add_sat r21.x, r21.y, r21.z mov r21.y, c223.x add r21.y, r21.y, -c21.y cmp r21.y, -r21_abs.y, r21.x, c0.w // Console tree lighting toggle diff --git a/win32_30_nv8/deferred_lighting/deferred_lightingPS4.asm b/win32_30_nv8/deferred_lighting/deferred_lightingPS4.asm index 6877fcdbc..a43be9ee5 100644 --- a/win32_30_nv8/deferred_lighting/deferred_lightingPS4.asm +++ b/win32_30_nv8/deferred_lighting/deferred_lightingPS4.asm @@ -50,8 +50,8 @@ def c6, 10, 1, 0, 0 def c20, 1.6666667, 0, 0, 0 // Reflection intensity multiplier def c21, 3, 2, 1, 0 // Console tree lighting constants - def c22, 0.01171875, 0.0234375, 0.02734375, 0 - def c23, 0.35, 0.5, 0.3333333, 0 + def c22, 0.012156862745098, 0.023921568627451, 0.027843137254902, 0 // 3.1, 6.1, 7.1 + def c23, 0.35, 0.5, 0.3333333, 0.0007843137254902 dcl_texcoord v0.xy dcl_texcoord1 v1 dcl_2d s0 @@ -63,8 +63,9 @@ texld r21, v0, s5 add r21.yz, r21.x, -c22 - cmp r21.yz, -r21_abs, c6.y, c6.z - add_sat r21.x, r21.y, r21.z // masks 5 and 6 + add r21.yz, -r21_abs, c23.w + cmp r21.yz, r21, c6.y, c6.z + add_sat r21.x, r21.y, r21.z mov r21.y, c223.x add r21.y, r21.y, -c21.y cmp r21.y, -r21_abs.y, r21.x, c0.x // Console tree lighting toggle @@ -127,7 +128,8 @@ texld r3, v0, s5 // add r0.z, -r3.x, c2.z add r20.xy, r3.x, -c22.xw - cmp r20.xy, -r20_abs.xy, c6.y, c6.z + add r20.xy, -r20_abs, c23.w + cmp r20.xy, r20, c6.y, c6.z add_sat r20.x, r20.x, r20.y add r0.z, r20.x, -c6.y // change wetness mask to include stencil 3 alongside 0 (since 3 is now used for the dithering mask) cmp r0.y, r0.z, r0.y, c0.x diff --git a/win32_30_nv8/deferred_lighting/deferred_lightingPS9.asm b/win32_30_nv8/deferred_lighting/deferred_lightingPS9.asm index 5bfd6a886..f9b828e8c 100644 --- a/win32_30_nv8/deferred_lighting/deferred_lightingPS9.asm +++ b/win32_30_nv8/deferred_lighting/deferred_lightingPS9.asm @@ -1,4 +1,4 @@ -// +// Added dithering mask stencil values // Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844 // // Parameters: @@ -46,7 +46,8 @@ def c1, 0.99609375, 7.96875, 63.75, -127.999992 def c2, 255, -128, -0, -7.9000001 def c3, -8, -0, -1, 0.100000001 - def c4, 9.99999975e-006, 1.11111116, 0, 0 + def c4, 9.99999975e-006, 1.11111116, 0.007843137254902, 0 + def c5, 0.016078431372549, 0.0474509803921569, 0.5180392156862745, 0.5494117647058824 // 4, 12, 132, 140 dcl_texcoord v0 dcl vPos.xy dcl_texcoord9 v9 @@ -119,6 +120,10 @@ mul r1.yzw, r1.z, r2.xxyz texld r2, r0, s0 texld r0, r0, s5 + add r20.xyzw, r0.x, -c5 + add r20.xyzw, -r20_abs, c4.z + cmp r20.xyzw, r20, -c3.z, -c3.y + dp4 r20.x, r20, -c3.z mul r0.yzw, r1, r2.xxyz mad r1.xyz, r1.x, r3, r0.yzww mad r0.y, r0.x, c2.x, c2.y @@ -130,6 +135,7 @@ add r0.x, r0.x, c3.z add r0.x, -r0_abs.x, c3.w cmp r0.x, r0.x, -c3.z, -c3.y + add_sat r0.x, r0.x, r20.x mov r1.w, -c3.z mul oC0, r1, r0.x // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_cubemap_reflect/gta_cubemap_reflectPS3.asm b/win32_30_nv8/gta_cubemap_reflect/gta_cubemap_reflectPS3.asm index 805128919..f659c43a3 100644 --- a/win32_30_nv8/gta_cubemap_reflect/gta_cubemap_reflectPS3.asm +++ b/win32_30_nv8/gta_cubemap_reflect/gta_cubemap_reflectPS3.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 9.8090892503e-44 // 70 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -86,9 +86,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_cubemap_reflect/gta_cubemap_reflectPS4.asm b/win32_30_nv8/gta_cubemap_reflect/gta_cubemap_reflectPS4.asm index 129939481..804b8142a 100644 --- a/win32_30_nv8/gta_cubemap_reflect/gta_cubemap_reflectPS4.asm +++ b/win32_30_nv8/gta_cubemap_reflect/gta_cubemap_reflectPS4.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 9.9492190967e-44 // 71 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -87,9 +87,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_cutout_fence/gta_cutout_fencePS3.asm b/win32_30_nv8/gta_cutout_fence/gta_cutout_fencePS3.asm index 29d5b89ef..892f34376 100644 --- a/win32_30_nv8/gta_cutout_fence/gta_cutout_fencePS3.asm +++ b/win32_30_nv8/gta_cutout_fence/gta_cutout_fencePS3.asm @@ -20,7 +20,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.1350517561e-43 // 81 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -78,9 +78,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_cutout_fence/gta_cutout_fencePS4.asm b/win32_30_nv8/gta_cutout_fence/gta_cutout_fencePS4.asm index a9a4a2f86..becfebb77 100644 --- a/win32_30_nv8/gta_cutout_fence/gta_cutout_fencePS4.asm +++ b/win32_30_nv8/gta_cutout_fence/gta_cutout_fencePS4.asm @@ -20,7 +20,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.1490647407e-43 // 82 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -67,9 +67,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_decal/gta_decalPS3.asm b/win32_30_nv8/gta_decal/gta_decalPS3.asm index 25adfcf83..af3bc3c29 100644 --- a/win32_30_nv8/gta_decal/gta_decalPS3.asm +++ b/win32_30_nv8/gta_decal/gta_decalPS3.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.9478048654e-43 // 139 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -78,9 +78,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_decal/gta_decalPS4.asm b/win32_30_nv8/gta_decal/gta_decalPS4.asm index 098b6a46e..67d950c23 100644 --- a/win32_30_nv8/gta_decal/gta_decalPS4.asm +++ b/win32_30_nv8/gta_decal/gta_decalPS4.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.9618178501e-43 // 140 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -78,9 +78,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_decal_amb_only/gta_decal_amb_onlyPS3.asm b/win32_30_nv8/gta_decal_amb_only/gta_decal_amb_onlyPS3.asm index d72b24b7a..6aaee979a 100644 --- a/win32_30_nv8/gta_decal_amb_only/gta_decal_amb_onlyPS3.asm +++ b/win32_30_nv8/gta_decal_amb_only/gta_decal_amb_onlyPS3.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.3032075718e-43 // 93 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -67,9 +67,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_decal_amb_only/gta_decal_amb_onlyPS4.asm b/win32_30_nv8/gta_decal_amb_only/gta_decal_amb_onlyPS4.asm index 69f3158d7..a12384a86 100644 --- a/win32_30_nv8/gta_decal_amb_only/gta_decal_amb_onlyPS4.asm +++ b/win32_30_nv8/gta_decal_amb_only/gta_decal_amb_onlyPS4.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.3172205565e-43 // 94 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -67,9 +67,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_decal_dirt/gta_decal_dirtPS3.asm b/win32_30_nv8/gta_decal_dirt/gta_decal_dirtPS3.asm index be8cdb419..77d0a873d 100644 --- a/win32_30_nv8/gta_decal_dirt/gta_decal_dirtPS3.asm +++ b/win32_30_nv8/gta_decal_dirt/gta_decal_dirtPS3.asm @@ -26,7 +26,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.4713633875e-43 // 105 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -75,9 +75,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_decal_dirt/gta_decal_dirtPS4.asm b/win32_30_nv8/gta_decal_dirt/gta_decal_dirtPS4.asm index ce1d2ecf0..678ba1539 100644 --- a/win32_30_nv8/gta_decal_dirt/gta_decal_dirtPS4.asm +++ b/win32_30_nv8/gta_decal_dirt/gta_decal_dirtPS4.asm @@ -26,7 +26,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.4853763722e-43 // 106 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -75,9 +75,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_decal_glue/gta_decal_gluePS3.asm b/win32_30_nv8/gta_decal_glue/gta_decal_gluePS3.asm index becc39081..0f953dd90 100644 --- a/win32_30_nv8/gta_decal_glue/gta_decal_gluePS3.asm +++ b/win32_30_nv8/gta_decal_glue/gta_decal_gluePS3.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.6255062186e-43 // 116 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -78,9 +78,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_decal_glue/gta_decal_gluePS4.asm b/win32_30_nv8/gta_decal_glue/gta_decal_gluePS4.asm index 8e592fa19..315282e8b 100644 --- a/win32_30_nv8/gta_decal_glue/gta_decal_gluePS4.asm +++ b/win32_30_nv8/gta_decal_glue/gta_decal_gluePS4.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.6395192033e-43 // 117 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -78,9 +78,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_decal_normal_only/gta_decal_normal_onlyPS3.asm b/win32_30_nv8/gta_decal_normal_only/gta_decal_normal_onlyPS3.asm index 02ec98d99..72483d191 100644 --- a/win32_30_nv8/gta_decal_normal_only/gta_decal_normal_onlyPS3.asm +++ b/win32_30_nv8/gta_decal_normal_only/gta_decal_normal_onlyPS3.asm @@ -22,7 +22,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.7796490497e-43 // 127 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -76,9 +76,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_decal_normal_only/gta_decal_normal_onlyPS4.asm b/win32_30_nv8/gta_decal_normal_only/gta_decal_normal_onlyPS4.asm index 7cbd11e91..76a332810 100644 --- a/win32_30_nv8/gta_decal_normal_only/gta_decal_normal_onlyPS4.asm +++ b/win32_30_nv8/gta_decal_normal_only/gta_decal_normal_onlyPS4.asm @@ -22,7 +22,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.7936620343e-43 // 128 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -76,9 +76,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_default/gta_defaultPS3.asm b/win32_30_nv8/gta_default/gta_defaultPS3.asm index e27974b2a..0453e7d87 100644 --- a/win32_30_nv8/gta_default/gta_defaultPS3.asm +++ b/win32_30_nv8/gta_default/gta_defaultPS3.asm @@ -20,7 +20,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 2.1019476965e-43 // 150 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -80,9 +80,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_default/gta_defaultPS4.asm b/win32_30_nv8/gta_default/gta_defaultPS4.asm index 780dd3376..72be36811 100644 --- a/win32_30_nv8/gta_default/gta_defaultPS4.asm +++ b/win32_30_nv8/gta_default/gta_defaultPS4.asm @@ -20,7 +20,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 2.1159606811e-43 // 151 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -69,9 +69,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_emissive/gta_emissivePS3.asm b/win32_30_nv8/gta_emissive/gta_emissivePS3.asm index 2c398a03a..f75ea6326 100644 --- a/win32_30_nv8/gta_emissive/gta_emissivePS3.asm +++ b/win32_30_nv8/gta_emissive/gta_emissivePS3.asm @@ -22,7 +22,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 2.5363502204e-43 // 181 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -70,9 +70,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_emissive/gta_emissivePS4.asm b/win32_30_nv8/gta_emissive/gta_emissivePS4.asm index cf1d91a50..1a64abd13 100644 --- a/win32_30_nv8/gta_emissive/gta_emissivePS4.asm +++ b/win32_30_nv8/gta_emissive/gta_emissivePS4.asm @@ -22,7 +22,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 2.5503632051e-43 // 182 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -71,9 +71,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_emissivenight/gta_emissivenightPS3.asm b/win32_30_nv8/gta_emissivenight/gta_emissivenightPS3.asm index 0e367769b..d81da5fc0 100644 --- a/win32_30_nv8/gta_emissivenight/gta_emissivenightPS3.asm +++ b/win32_30_nv8/gta_emissivenight/gta_emissivenightPS3.asm @@ -22,7 +22,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 2.3681944047e-43 // 169 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -70,9 +70,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_emissivenight/gta_emissivenightPS4.asm b/win32_30_nv8/gta_emissivenight/gta_emissivenightPS4.asm index fd20efb31..f27afeb94 100644 --- a/win32_30_nv8/gta_emissivenight/gta_emissivenightPS4.asm +++ b/win32_30_nv8/gta_emissivenight/gta_emissivenightPS4.asm @@ -22,7 +22,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 2.3822073894e-43 // 170 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -71,9 +71,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_emissivestrong/gta_emissivestrongPS3.asm b/win32_30_nv8/gta_emissivestrong/gta_emissivestrongPS3.asm index 2a04b549b..8c49125e1 100644 --- a/win32_30_nv8/gta_emissivestrong/gta_emissivestrongPS3.asm +++ b/win32_30_nv8/gta_emissivestrong/gta_emissivestrongPS3.asm @@ -22,7 +22,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 2.7045060361e-43 // 193 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -70,9 +70,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_emissivestrong/gta_emissivestrongPS4.asm b/win32_30_nv8/gta_emissivestrong/gta_emissivestrongPS4.asm index 7d1e48a02..9dc80f042 100644 --- a/win32_30_nv8/gta_emissivestrong/gta_emissivestrongPS4.asm +++ b/win32_30_nv8/gta_emissivestrong/gta_emissivestrongPS4.asm @@ -22,7 +22,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 2.7185190208e-43 // 194 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -71,9 +71,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass/gta_glassPS3.asm b/win32_30_nv8/gta_glass/gta_glassPS3.asm index f8c2934a2..c6b9f97e3 100644 --- a/win32_30_nv8/gta_glass/gta_glassPS3.asm +++ b/win32_30_nv8/gta_glass/gta_glassPS3.asm @@ -32,7 +32,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.6433760072e-43 // 260 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -115,9 +115,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass/gta_glassPS4.asm b/win32_30_nv8/gta_glass/gta_glassPS4.asm index 5e9e3d822..e86153e64 100644 --- a/win32_30_nv8/gta_glass/gta_glassPS4.asm +++ b/win32_30_nv8/gta_glass/gta_glassPS4.asm @@ -32,7 +32,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.6573889919e-43 // 261 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -115,9 +115,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass_emissive/gta_glass_emissivePS3.asm b/win32_30_nv8/gta_glass_emissive/gta_glass_emissivePS3.asm index 90d1addde..cbb2598b2 100644 --- a/win32_30_nv8/gta_glass_emissive/gta_glass_emissivePS3.asm +++ b/win32_30_nv8/gta_glass_emissive/gta_glass_emissivePS3.asm @@ -34,7 +34,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.0268046829e-43 // 216 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -118,9 +118,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass_emissive/gta_glass_emissivePS4.asm b/win32_30_nv8/gta_glass_emissive/gta_glass_emissivePS4.asm index dee32959c..98a037661 100644 --- a/win32_30_nv8/gta_glass_emissive/gta_glass_emissivePS4.asm +++ b/win32_30_nv8/gta_glass_emissive/gta_glass_emissivePS4.asm @@ -34,7 +34,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.0408176676e-43 // 217 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -118,9 +118,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass_emissivenight/gta_glass_emissivenightPS3.asm b/win32_30_nv8/gta_glass_emissivenight/gta_glass_emissivenightPS3.asm index 538bf602f..6454bb457 100644 --- a/win32_30_nv8/gta_glass_emissivenight/gta_glass_emissivenightPS3.asm +++ b/win32_30_nv8/gta_glass_emissivenight/gta_glass_emissivenightPS3.asm @@ -34,7 +34,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 2.8726618519e-43 // 205 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -118,9 +118,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass_emissivenight/gta_glass_emissivenightPS4.asm b/win32_30_nv8/gta_glass_emissivenight/gta_glass_emissivenightPS4.asm index 206ec9fe2..3bb490ebe 100644 --- a/win32_30_nv8/gta_glass_emissivenight/gta_glass_emissivenightPS4.asm +++ b/win32_30_nv8/gta_glass_emissivenight/gta_glass_emissivenightPS4.asm @@ -34,7 +34,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 2.8866748365e-43 // 206 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -118,9 +118,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass_normal_spec_reflect/gta_glass_normal_spec_reflectPS3.asm b/win32_30_nv8/gta_glass_normal_spec_reflect/gta_glass_normal_spec_reflectPS3.asm index ecde75d80..65f01b078 100644 --- a/win32_30_nv8/gta_glass_normal_spec_reflect/gta_glass_normal_spec_reflectPS3.asm +++ b/win32_30_nv8/gta_glass_normal_spec_reflect/gta_glass_normal_spec_reflectPS3.asm @@ -36,7 +36,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.1809475140e-43 // 227 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -123,9 +123,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass_normal_spec_reflect/gta_glass_normal_spec_reflectPS4.asm b/win32_30_nv8/gta_glass_normal_spec_reflect/gta_glass_normal_spec_reflectPS4.asm index 589034f8d..6789815d9 100644 --- a/win32_30_nv8/gta_glass_normal_spec_reflect/gta_glass_normal_spec_reflectPS4.asm +++ b/win32_30_nv8/gta_glass_normal_spec_reflect/gta_glass_normal_spec_reflectPS4.asm @@ -36,7 +36,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.1949604987e-43 // 228 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -123,9 +123,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass_reflect/gta_glass_reflectPS3.asm b/win32_30_nv8/gta_glass_reflect/gta_glass_reflectPS3.asm index 4ea41f56c..b927d7181 100644 --- a/win32_30_nv8/gta_glass_reflect/gta_glass_reflectPS3.asm +++ b/win32_30_nv8/gta_glass_reflect/gta_glass_reflectPS3.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.3350903451e-43 // 238 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -96,9 +96,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass_reflect/gta_glass_reflectPS4.asm b/win32_30_nv8/gta_glass_reflect/gta_glass_reflectPS4.asm index 7b882c981..c026621c4 100644 --- a/win32_30_nv8/gta_glass_reflect/gta_glass_reflectPS4.asm +++ b/win32_30_nv8/gta_glass_reflect/gta_glass_reflectPS4.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.3491033297e-43 // 239 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -96,9 +96,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass_spec/gta_glass_specPS3.asm b/win32_30_nv8/gta_glass_spec/gta_glass_specPS3.asm index 208402b90..946fdafe3 100644 --- a/win32_30_nv8/gta_glass_spec/gta_glass_specPS3.asm +++ b/win32_30_nv8/gta_glass_spec/gta_glass_specPS3.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.4892331762e-43 // 249 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -84,9 +84,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_glass_spec/gta_glass_specPS4.asm b/win32_30_nv8/gta_glass_spec/gta_glass_specPS4.asm index 40604b263..fe38b908b 100644 --- a/win32_30_nv8/gta_glass_spec/gta_glass_specPS4.asm +++ b/win32_30_nv8/gta_glass_spec/gta_glass_specPS4.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.5032461608e-43 // 250 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -84,9 +84,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_grass/gta_grassPS2.asm b/win32_30_nv8/gta_grass/gta_grassPS2.asm index d3d720f5e..26aba8ca3 100644 --- a/win32_30_nv8/gta_grass/gta_grassPS2.asm +++ b/win32_30_nv8/gta_grass/gta_grassPS2.asm @@ -18,7 +18,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.7835058537e-43 // 270 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -65,9 +65,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_hair_sorted_alpha/gta_hair_sorted_alphaPS5.asm b/win32_30_nv8/gta_hair_sorted_alpha/gta_hair_sorted_alphaPS5.asm index bb118efce..3f1499abc 100644 --- a/win32_30_nv8/gta_hair_sorted_alpha/gta_hair_sorted_alphaPS5.asm +++ b/win32_30_nv8/gta_hair_sorted_alpha/gta_hair_sorted_alphaPS5.asm @@ -40,7 +40,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.9376486848e-43 // 281 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -159,9 +159,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal/gta_normalPS3.asm b/win32_30_nv8/gta_normal/gta_normalPS3.asm index f24cfb578..be6db83fa 100644 --- a/win32_30_nv8/gta_normal/gta_normalPS3.asm +++ b/win32_30_nv8/gta_normal/gta_normalPS3.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.9835444427e-43 // 427 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -95,9 +95,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal/gta_normalPS4.asm b/win32_30_nv8/gta_normal/gta_normalPS4.asm index a57560ba4..dc42f3bc0 100644 --- a/win32_30_nv8/gta_normal/gta_normalPS4.asm +++ b/win32_30_nv8/gta_normal/gta_normalPS4.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.9975574273e-43 // 428 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -96,9 +96,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_cubemap_reflect/gta_normal_cubemap_reflectPS3.asm b/win32_30_nv8/gta_normal_cubemap_reflect/gta_normal_cubemap_reflectPS3.asm index 174a8d89d..255bebbcf 100644 --- a/win32_30_nv8/gta_normal_cubemap_reflect/gta_normal_cubemap_reflectPS3.asm +++ b/win32_30_nv8/gta_normal_cubemap_reflect/gta_normal_cubemap_reflectPS3.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.0917915158e-43 // 292 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -107,9 +107,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_cubemap_reflect/gta_normal_cubemap_reflectPS4.asm b/win32_30_nv8/gta_normal_cubemap_reflect/gta_normal_cubemap_reflectPS4.asm index d85760d1c..d1dee758a 100644 --- a/win32_30_nv8/gta_normal_cubemap_reflect/gta_normal_cubemap_reflectPS4.asm +++ b/win32_30_nv8/gta_normal_cubemap_reflect/gta_normal_cubemap_reflectPS4.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.1058045005e-43 // 293 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -107,9 +107,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_decal/gta_normal_decalPS3.asm b/win32_30_nv8/gta_normal_decal/gta_normal_decalPS3.asm index 3215f77ea..e4422d5f0 100644 --- a/win32_30_nv8/gta_normal_decal/gta_normal_decalPS3.asm +++ b/win32_30_nv8/gta_normal_decal/gta_normal_decalPS3.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.2459343469e-43 // 303 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -96,9 +96,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_decal/gta_normal_decalPS4.asm b/win32_30_nv8/gta_normal_decal/gta_normal_decalPS4.asm index 93b9e7958..117ab117b 100644 --- a/win32_30_nv8/gta_normal_decal/gta_normal_decalPS4.asm +++ b/win32_30_nv8/gta_normal_decal/gta_normal_decalPS4.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.2599473315e-43 // 304 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -96,9 +96,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_reflect/gta_normal_reflectPS3.asm b/win32_30_nv8/gta_normal_reflect/gta_normal_reflectPS3.asm index 06f7a5d2a..9151da72c 100644 --- a/win32_30_nv8/gta_normal_reflect/gta_normal_reflectPS3.asm +++ b/win32_30_nv8/gta_normal_reflect/gta_normal_reflectPS3.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.7223758248e-43 // 337 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -106,9 +106,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_reflect/gta_normal_reflectPS4.asm b/win32_30_nv8/gta_normal_reflect/gta_normal_reflectPS4.asm index 5a4c33d58..5381e0595 100644 --- a/win32_30_nv8/gta_normal_reflect/gta_normal_reflectPS4.asm +++ b/win32_30_nv8/gta_normal_reflect/gta_normal_reflectPS4.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.7363888094e-43 // 338 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -106,9 +106,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_reflect_alpha/gta_normal_reflect_alphaPS3.asm b/win32_30_nv8/gta_normal_reflect_alpha/gta_normal_reflect_alphaPS3.asm index 3c7d4ab74..7aa0a59b8 100644 --- a/win32_30_nv8/gta_normal_reflect_alpha/gta_normal_reflect_alphaPS3.asm +++ b/win32_30_nv8/gta_normal_reflect_alpha/gta_normal_reflect_alphaPS3.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.4140901626e-43 // 315 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -106,9 +106,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_reflect_alpha/gta_normal_reflect_alphaPS4.asm b/win32_30_nv8/gta_normal_reflect_alpha/gta_normal_reflect_alphaPS4.asm index 654c797dc..b8d3d213a 100644 --- a/win32_30_nv8/gta_normal_reflect_alpha/gta_normal_reflect_alphaPS4.asm +++ b/win32_30_nv8/gta_normal_reflect_alpha/gta_normal_reflect_alphaPS4.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.4281031473e-43 // 316 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -106,9 +106,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_reflect_decal/gta_normal_reflect_decalPS3.asm b/win32_30_nv8/gta_normal_reflect_decal/gta_normal_reflect_decalPS3.asm index b53a7bc33..f78505724 100644 --- a/win32_30_nv8/gta_normal_reflect_decal/gta_normal_reflect_decalPS3.asm +++ b/win32_30_nv8/gta_normal_reflect_decal/gta_normal_reflect_decalPS3.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.5682329937e-43 // 326 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -106,9 +106,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_reflect_decal/gta_normal_reflect_decalPS4.asm b/win32_30_nv8/gta_normal_reflect_decal/gta_normal_reflect_decalPS4.asm index b6858aa18..431080f13 100644 --- a/win32_30_nv8/gta_normal_reflect_decal/gta_normal_reflect_decalPS4.asm +++ b/win32_30_nv8/gta_normal_reflect_decal/gta_normal_reflect_decalPS4.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.5822459783e-43 // 327 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -106,9 +106,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec/gta_normal_specPS3.asm b/win32_30_nv8/gta_normal_spec/gta_normal_specPS3.asm index a83a582d4..2c9b0a187 100644 --- a/win32_30_nv8/gta_normal_spec/gta_normal_specPS3.asm +++ b/win32_30_nv8/gta_normal_spec/gta_normal_specPS3.asm @@ -32,7 +32,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.8153886269e-43 // 415 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -103,9 +103,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec/gta_normal_specPS4.asm b/win32_30_nv8/gta_normal_spec/gta_normal_specPS4.asm index 78bf38942..77a140b14 100644 --- a/win32_30_nv8/gta_normal_spec/gta_normal_specPS4.asm +++ b/win32_30_nv8/gta_normal_spec/gta_normal_specPS4.asm @@ -32,7 +32,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.8294016116e-43 // 416 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -104,9 +104,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_cubemap_reflect/gta_normal_spec_cubemap_reflectPS3.asm b/win32_30_nv8/gta_normal_spec_cubemap_reflect/gta_normal_spec_cubemap_reflectPS3.asm index d6c416154..deb78945c 100644 --- a/win32_30_nv8/gta_normal_spec_cubemap_reflect/gta_normal_spec_cubemap_reflectPS3.asm +++ b/win32_30_nv8/gta_normal_spec_cubemap_reflect/gta_normal_spec_cubemap_reflectPS3.asm @@ -36,7 +36,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.8765186559e-43 // 348 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -124,9 +124,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_cubemap_reflect/gta_normal_spec_cubemap_reflectPS4.asm b/win32_30_nv8/gta_normal_spec_cubemap_reflect/gta_normal_spec_cubemap_reflectPS4.asm index 02f2018d5..806a0f74c 100644 --- a/win32_30_nv8/gta_normal_spec_cubemap_reflect/gta_normal_spec_cubemap_reflectPS4.asm +++ b/win32_30_nv8/gta_normal_spec_cubemap_reflect/gta_normal_spec_cubemap_reflectPS4.asm @@ -36,7 +36,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 4.8905316405e-43 // 349 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -124,9 +124,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_decal/gta_normal_spec_decalPS3.asm b/win32_30_nv8/gta_normal_spec_decal/gta_normal_spec_decalPS3.asm index 8b026a390..e57e76a85 100644 --- a/win32_30_nv8/gta_normal_spec_decal/gta_normal_spec_decalPS3.asm +++ b/win32_30_nv8/gta_normal_spec_decal/gta_normal_spec_decalPS3.asm @@ -32,7 +32,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.0306614869e-43 // 359 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -104,9 +104,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_decal/gta_normal_spec_decalPS4.asm b/win32_30_nv8/gta_normal_spec_decal/gta_normal_spec_decalPS4.asm index 7b1b7b759..4191a2254 100644 --- a/win32_30_nv8/gta_normal_spec_decal/gta_normal_spec_decalPS4.asm +++ b/win32_30_nv8/gta_normal_spec_decal/gta_normal_spec_decalPS4.asm @@ -32,7 +32,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.0446744716e-43 // 360 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -104,9 +104,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_reflect/gta_normal_spec_reflectPS3.asm b/win32_30_nv8/gta_normal_spec_reflect/gta_normal_spec_reflectPS3.asm index b0a5f6e69..659be1464 100644 --- a/win32_30_nv8/gta_normal_spec_reflect/gta_normal_spec_reflectPS3.asm +++ b/win32_30_nv8/gta_normal_spec_reflect/gta_normal_spec_reflectPS3.asm @@ -36,7 +36,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.6612457959e-43 // 404 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -123,9 +123,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_reflect/gta_normal_spec_reflectPS4.asm b/win32_30_nv8/gta_normal_spec_reflect/gta_normal_spec_reflectPS4.asm index 5a1c5bca1..8590bdeed 100644 --- a/win32_30_nv8/gta_normal_spec_reflect/gta_normal_spec_reflectPS4.asm +++ b/win32_30_nv8/gta_normal_spec_reflect/gta_normal_spec_reflectPS4.asm @@ -36,7 +36,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.6752587805e-43 // 405 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -123,9 +123,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_reflect_decal/gta_normal_spec_reflect_decalPS3.asm b/win32_30_nv8/gta_normal_spec_reflect_decal/gta_normal_spec_reflect_decalPS3.asm index 9f5f45479..83582e6f0 100644 --- a/win32_30_nv8/gta_normal_spec_reflect_decal/gta_normal_spec_reflect_decalPS3.asm +++ b/win32_30_nv8/gta_normal_spec_reflect_decal/gta_normal_spec_reflect_decalPS3.asm @@ -36,7 +36,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.1988173026e-43 // 371 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -123,9 +123,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_reflect_decal/gta_normal_spec_reflect_decalPS4.asm b/win32_30_nv8/gta_normal_spec_reflect_decal/gta_normal_spec_reflect_decalPS4.asm index 2ae77ce5b..3d2e5f8bd 100644 --- a/win32_30_nv8/gta_normal_spec_reflect_decal/gta_normal_spec_reflect_decalPS4.asm +++ b/win32_30_nv8/gta_normal_spec_reflect_decal/gta_normal_spec_reflect_decalPS4.asm @@ -36,7 +36,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.2128302873e-43 // 372 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -123,9 +123,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_reflect_emissive/gta_normal_spec_reflect_emissivePS3.asm b/win32_30_nv8/gta_normal_spec_reflect_emissive/gta_normal_spec_reflect_emissivePS3.asm index b26de82b6..bd9e57406 100644 --- a/win32_30_nv8/gta_normal_spec_reflect_emissive/gta_normal_spec_reflect_emissivePS3.asm +++ b/win32_30_nv8/gta_normal_spec_reflect_emissive/gta_normal_spec_reflect_emissivePS3.asm @@ -38,7 +38,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.5071029648e-43 // 393 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -126,9 +126,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_reflect_emissive/gta_normal_spec_reflect_emissivePS4.asm b/win32_30_nv8/gta_normal_spec_reflect_emissive/gta_normal_spec_reflect_emissivePS4.asm index d572639a2..f9b8da163 100644 --- a/win32_30_nv8/gta_normal_spec_reflect_emissive/gta_normal_spec_reflect_emissivePS4.asm +++ b/win32_30_nv8/gta_normal_spec_reflect_emissive/gta_normal_spec_reflect_emissivePS4.asm @@ -38,7 +38,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.5211159494e-43 // 394 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -126,9 +126,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_reflect_emissivenight/gta_normal_spec_reflect_emissivenightPS3.asm b/win32_30_nv8/gta_normal_spec_reflect_emissivenight/gta_normal_spec_reflect_emissivenightPS3.asm index 3d367f1cc..d0e8eabeb 100644 --- a/win32_30_nv8/gta_normal_spec_reflect_emissivenight/gta_normal_spec_reflect_emissivenightPS3.asm +++ b/win32_30_nv8/gta_normal_spec_reflect_emissivenight/gta_normal_spec_reflect_emissivenightPS3.asm @@ -38,7 +38,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.3529601337e-43 // 382 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -126,9 +126,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_normal_spec_reflect_emissivenight/gta_normal_spec_reflect_emissivenightPS4.asm b/win32_30_nv8/gta_normal_spec_reflect_emissivenight/gta_normal_spec_reflect_emissivenightPS4.asm index 6e7966646..cfd6b4b34 100644 --- a/win32_30_nv8/gta_normal_spec_reflect_emissivenight/gta_normal_spec_reflect_emissivenightPS4.asm +++ b/win32_30_nv8/gta_normal_spec_reflect_emissivenight/gta_normal_spec_reflect_emissivenightPS4.asm @@ -38,7 +38,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 5.3669731184e-43 // 383 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -126,9 +126,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_parallax/gta_parallaxPS3.asm b/win32_30_nv8/gta_parallax/gta_parallaxPS3.asm index c3fcd306b..d40777d4f 100644 --- a/win32_30_nv8/gta_parallax/gta_parallaxPS3.asm +++ b/win32_30_nv8/gta_parallax/gta_parallaxPS3.asm @@ -30,7 +30,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.4599859205e-43 // 461 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -109,9 +109,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_parallax/gta_parallaxPS4.asm b/win32_30_nv8/gta_parallax/gta_parallaxPS4.asm index 77ccefa29..3ed793508 100644 --- a/win32_30_nv8/gta_parallax/gta_parallaxPS4.asm +++ b/win32_30_nv8/gta_parallax/gta_parallaxPS4.asm @@ -30,7 +30,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.4739989052e-43 // 462 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -107,9 +107,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_parallax_specmap/gta_parallax_specmapPS3.asm b/win32_30_nv8/gta_parallax_specmap/gta_parallax_specmapPS3.asm index 84f7d2a8b..e8afbc8d5 100644 --- a/win32_30_nv8/gta_parallax_specmap/gta_parallax_specmapPS3.asm +++ b/win32_30_nv8/gta_parallax_specmap/gta_parallax_specmapPS3.asm @@ -34,7 +34,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.1517002584e-43 // 439 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -117,9 +117,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_parallax_specmap/gta_parallax_specmapPS4.asm b/win32_30_nv8/gta_parallax_specmap/gta_parallax_specmapPS4.asm index a7a8aa8fd..ee87ba5f2 100644 --- a/win32_30_nv8/gta_parallax_specmap/gta_parallax_specmapPS4.asm +++ b/win32_30_nv8/gta_parallax_specmap/gta_parallax_specmapPS4.asm @@ -34,7 +34,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.1657132430e-43 // 440 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -116,9 +116,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_parallax_steep/gta_parallax_steepPS3.asm b/win32_30_nv8/gta_parallax_steep/gta_parallax_steepPS3.asm index 445fee34a..96fe4fa57 100644 --- a/win32_30_nv8/gta_parallax_steep/gta_parallax_steepPS3.asm +++ b/win32_30_nv8/gta_parallax_steep/gta_parallax_steepPS3.asm @@ -30,7 +30,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.3058430895e-43 // 450 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -116,9 +116,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_parallax_steep/gta_parallax_steepPS4.asm b/win32_30_nv8/gta_parallax_steep/gta_parallax_steepPS4.asm index 2a90ab327..9a2920743 100644 --- a/win32_30_nv8/gta_parallax_steep/gta_parallax_steepPS4.asm +++ b/win32_30_nv8/gta_parallax_steep/gta_parallax_steepPS4.asm @@ -30,7 +30,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.3198560741e-43 // 451 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -119,9 +119,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_ped/gta_pedPS5.asm b/win32_30_nv8/gta_ped/gta_pedPS5.asm index b248d56a9..4e11a02d1 100644 --- a/win32_30_nv8/gta_ped/gta_pedPS5.asm +++ b/win32_30_nv8/gta_ped/gta_pedPS5.asm @@ -40,7 +40,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.8663624752e-43 // 490 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -158,9 +158,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_ped_reflect/gta_ped_reflectPS5.asm b/win32_30_nv8/gta_ped_reflect/gta_ped_reflectPS5.asm index c2b2e554f..a1405fca1 100644 --- a/win32_30_nv8/gta_ped_reflect/gta_ped_reflectPS5.asm +++ b/win32_30_nv8/gta_ped_reflect/gta_ped_reflectPS5.asm @@ -40,7 +40,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.6561677055e-43 // 475 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -158,9 +158,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_ped_skin/gta_ped_skinPS5.asm b/win32_30_nv8/gta_ped_skin/gta_ped_skinPS5.asm index 481fab51c..da7eb9a55 100644 --- a/win32_30_nv8/gta_ped_skin/gta_ped_skinPS5.asm +++ b/win32_30_nv8/gta_ped_skin/gta_ped_skinPS5.asm @@ -48,7 +48,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.7962975520e-43 // 485 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -189,9 +189,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_ped_skin_blendshape/gta_ped_skin_blendshapePS5.asm b/win32_30_nv8/gta_ped_skin_blendshape/gta_ped_skin_blendshapePS5.asm index 5ffb6688c..32a19b81e 100644 --- a/win32_30_nv8/gta_ped_skin_blendshape/gta_ped_skin_blendshapePS5.asm +++ b/win32_30_nv8/gta_ped_skin_blendshape/gta_ped_skin_blendshapePS5.asm @@ -48,7 +48,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.7262326288e-43 // 480 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -189,9 +189,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_projtex/gta_projtexPS3.asm b/win32_30_nv8/gta_projtex/gta_projtexPS3.asm index d17a0b92c..f871087ca 100644 --- a/win32_30_nv8/gta_projtex/gta_projtexPS3.asm +++ b/win32_30_nv8/gta_projtex/gta_projtexPS3.asm @@ -30,7 +30,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.0625442602e-43 // 504 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -110,9 +110,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_projtex/gta_projtexPS4.asm b/win32_30_nv8/gta_projtex/gta_projtexPS4.asm index d088c0c8e..17a1900b9 100644 --- a/win32_30_nv8/gta_projtex/gta_projtexPS4.asm +++ b/win32_30_nv8/gta_projtex/gta_projtexPS4.asm @@ -30,7 +30,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.0765572448e-43 // 505 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -110,9 +110,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_projtex_steep/gta_projtex_steepPS3.asm b/win32_30_nv8/gta_projtex_steep/gta_projtex_steepPS3.asm index 8315bec97..038f380b8 100644 --- a/win32_30_nv8/gta_projtex_steep/gta_projtex_steepPS3.asm +++ b/win32_30_nv8/gta_projtex_steep/gta_projtex_steepPS3.asm @@ -30,7 +30,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.9084014291e-43 // 493 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -122,9 +122,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_projtex_steep/gta_projtex_steepPS4.asm b/win32_30_nv8/gta_projtex_steep/gta_projtex_steepPS4.asm index 26c9e510d..dcd8b68ae 100644 --- a/win32_30_nv8/gta_projtex_steep/gta_projtex_steepPS4.asm +++ b/win32_30_nv8/gta_projtex_steep/gta_projtex_steepPS4.asm @@ -30,7 +30,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 6.9224144138e-43 // 494 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -122,9 +122,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_reflect/gta_reflectPS3.asm b/win32_30_nv8/gta_reflect/gta_reflectPS3.asm index cb179fa2b..2e6969405 100644 --- a/win32_30_nv8/gta_reflect/gta_reflectPS3.asm +++ b/win32_30_nv8/gta_reflect/gta_reflectPS3.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.3848429070e-43 // 527 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -86,9 +86,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_reflect/gta_reflectPS4.asm b/win32_30_nv8/gta_reflect/gta_reflectPS4.asm index 3d83aae36..27c93a11b 100644 --- a/win32_30_nv8/gta_reflect/gta_reflectPS4.asm +++ b/win32_30_nv8/gta_reflect/gta_reflectPS4.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.3988558916e-43 // 528 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -87,9 +87,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_reflect_decal/gta_reflect_decalPS3.asm b/win32_30_nv8/gta_reflect_decal/gta_reflect_decalPS3.asm index 50a7a076d..993713371 100644 --- a/win32_30_nv8/gta_reflect_decal/gta_reflect_decalPS3.asm +++ b/win32_30_nv8/gta_reflect_decal/gta_reflect_decalPS3.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.2307000759e-43 // 516 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -87,9 +87,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_reflect_decal/gta_reflect_decalPS4.asm b/win32_30_nv8/gta_reflect_decal/gta_reflect_decalPS4.asm index ebe357fd4..2f97023df 100644 --- a/win32_30_nv8/gta_reflect_decal/gta_reflect_decalPS4.asm +++ b/win32_30_nv8/gta_reflect_decal/gta_reflect_decalPS4.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.2447130606e-43 // 517 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -87,9 +87,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_rmptfx_mesh/gta_rmptfx_meshPS3.asm b/win32_30_nv8/gta_rmptfx_mesh/gta_rmptfx_meshPS3.asm index 8a8a8be7d..8345c536b 100644 --- a/win32_30_nv8/gta_rmptfx_mesh/gta_rmptfx_meshPS3.asm +++ b/win32_30_nv8/gta_rmptfx_mesh/gta_rmptfx_meshPS3.asm @@ -26,7 +26,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.6090506613e-43 // 543 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -79,9 +79,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_rmptfx_mesh/gta_rmptfx_meshPS4.asm b/win32_30_nv8/gta_rmptfx_mesh/gta_rmptfx_meshPS4.asm index daea01e03..e0ee74284 100644 --- a/win32_30_nv8/gta_rmptfx_mesh/gta_rmptfx_meshPS4.asm +++ b/win32_30_nv8/gta_rmptfx_mesh/gta_rmptfx_meshPS4.asm @@ -26,7 +26,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.6230636459e-43 // 544 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -79,9 +79,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_spec/gta_specPS3.asm b/win32_30_nv8/gta_spec/gta_specPS3.asm index 22390faad..26cb64300 100644 --- a/win32_30_nv8/gta_spec/gta_specPS3.asm +++ b/win32_30_nv8/gta_spec/gta_specPS3.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 8.2676609395e-43 // 590 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -83,9 +83,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_spec/gta_specPS4.asm b/win32_30_nv8/gta_spec/gta_specPS4.asm index 74db8a4f5..19a7c1ddd 100644 --- a/win32_30_nv8/gta_spec/gta_specPS4.asm +++ b/win32_30_nv8/gta_spec/gta_specPS4.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 8.2816739242e-43 // 591 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -84,9 +84,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_spec_decal/gta_spec_decalPS3.asm b/win32_30_nv8/gta_spec_decal/gta_spec_decalPS3.asm index 30b416122..ff372b142 100644 --- a/win32_30_nv8/gta_spec_decal/gta_spec_decalPS3.asm +++ b/win32_30_nv8/gta_spec_decal/gta_spec_decalPS3.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.8052324463e-43 // 557 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -84,9 +84,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_spec_decal/gta_spec_decalPS4.asm b/win32_30_nv8/gta_spec_decal/gta_spec_decalPS4.asm index 6d93f34fd..8611410e9 100644 --- a/win32_30_nv8/gta_spec_decal/gta_spec_decalPS4.asm +++ b/win32_30_nv8/gta_spec_decal/gta_spec_decalPS4.asm @@ -28,7 +28,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.8192454309e-43 // 558 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -84,9 +84,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_spec_reflect/gta_spec_reflectPS3.asm b/win32_30_nv8/gta_spec_reflect/gta_spec_reflectPS3.asm index d6a70c376..2c995236a 100644 --- a/win32_30_nv8/gta_spec_reflect/gta_spec_reflectPS3.asm +++ b/win32_30_nv8/gta_spec_reflect/gta_spec_reflectPS3.asm @@ -32,7 +32,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 8.1135181084e-43 // 579 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -103,9 +103,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_spec_reflect/gta_spec_reflectPS4.asm b/win32_30_nv8/gta_spec_reflect/gta_spec_reflectPS4.asm index 30212284e..757ab11ca 100644 --- a/win32_30_nv8/gta_spec_reflect/gta_spec_reflectPS4.asm +++ b/win32_30_nv8/gta_spec_reflect/gta_spec_reflectPS4.asm @@ -32,7 +32,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 8.1275310931e-43 // 580 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -104,9 +104,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_spec_reflect_decal/gta_spec_reflect_decalPS3.asm b/win32_30_nv8/gta_spec_reflect_decal/gta_spec_reflect_decalPS3.asm index 8cae02732..edf5e0c18 100644 --- a/win32_30_nv8/gta_spec_reflect_decal/gta_spec_reflect_decalPS3.asm +++ b/win32_30_nv8/gta_spec_reflect_decal/gta_spec_reflect_decalPS3.asm @@ -32,7 +32,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.9593752774e-43 // 568 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -104,9 +104,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_spec_reflect_decal/gta_spec_reflect_decalPS4.asm b/win32_30_nv8/gta_spec_reflect_decal/gta_spec_reflect_decalPS4.asm index d149ebc7d..ae85e1ba4 100644 --- a/win32_30_nv8/gta_spec_reflect_decal/gta_spec_reflect_decalPS4.asm +++ b/win32_30_nv8/gta_spec_reflect_decal/gta_spec_reflect_decalPS4.asm @@ -32,7 +32,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 7.9733882620e-43 // 569 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -104,9 +104,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_terrain_va_2lyr/gta_terrain_va_2lyrPS3.asm b/win32_30_nv8/gta_terrain_va_2lyr/gta_terrain_va_2lyrPS3.asm index b1610c93c..b52eef2e3 100644 --- a/win32_30_nv8/gta_terrain_va_2lyr/gta_terrain_va_2lyrPS3.asm +++ b/win32_30_nv8/gta_terrain_va_2lyr/gta_terrain_va_2lyrPS3.asm @@ -22,7 +22,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 8.4218037706e-43 // 601 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -71,9 +71,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_terrain_va_3lyr/gta_terrain_va_3lyrPS4.asm b/win32_30_nv8/gta_terrain_va_3lyr/gta_terrain_va_3lyrPS4.asm index 9a5879351..2e898ebeb 100644 --- a/win32_30_nv8/gta_terrain_va_3lyr/gta_terrain_va_3lyrPS4.asm +++ b/win32_30_nv8/gta_terrain_va_3lyr/gta_terrain_va_3lyrPS4.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 8.4778557092e-43 // 605 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -78,9 +78,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_terrain_va_4lyr/gta_terrain_va_4lyrPS5.asm b/win32_30_nv8/gta_terrain_va_4lyr/gta_terrain_va_4lyrPS5.asm index c97fb5d8d..99d450216 100644 --- a/win32_30_nv8/gta_terrain_va_4lyr/gta_terrain_va_4lyrPS5.asm +++ b/win32_30_nv8/gta_terrain_va_4lyr/gta_terrain_va_4lyrPS5.asm @@ -26,7 +26,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 8.5479206324e-43 // 610 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -85,9 +85,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_trees/gta_treesPS1.asm b/win32_30_nv8/gta_trees/gta_treesPS1.asm index cb34a7849..6843f3611 100644 --- a/win32_30_nv8/gta_trees/gta_treesPS1.asm +++ b/win32_30_nv8/gta_trees/gta_treesPS1.asm @@ -21,13 +21,13 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 8.5619336170e-43 // 611 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants def c0, 3.99600005, 4, 0.125, 0.25 def c1, -1, -0, 0.5, 0 - def c2, 0.0234375, 0.02734375, 0, 0 // stencil + def c2, 0.0235294117647059, 0.0274509803921569, 0, 0 // stencil def c3, 0.25, 0.5, 1280, 2 dcl_texcoord v0.xy dcl_texcoord1 v1.xyz diff --git a/win32_30_nv8/gta_wire/gta_wirePS3.asm b/win32_30_nv8/gta_wire/gta_wirePS3.asm index fead2c811..eac976ab4 100644 --- a/win32_30_nv8/gta_wire/gta_wirePS3.asm +++ b/win32_30_nv8/gta_wire/gta_wirePS3.asm @@ -20,7 +20,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.0551777436e-42 // 753 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -67,9 +67,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/gta_wire/gta_wirePS4.asm b/win32_30_nv8/gta_wire/gta_wirePS4.asm index b48227995..81adfc554 100644 --- a/win32_30_nv8/gta_wire/gta_wirePS4.asm +++ b/win32_30_nv8/gta_wire/gta_wirePS4.asm @@ -20,7 +20,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.0565790421e-42 // 754 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -67,9 +67,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/rage_billboard_nobump/rage_billboard_nobumpPS1.asm b/win32_30_nv8/rage_billboard_nobump/rage_billboard_nobumpPS1.asm index 0811d8967..f0e6eaaa2 100644 --- a/win32_30_nv8/rage_billboard_nobump/rage_billboard_nobumpPS1.asm +++ b/win32_30_nv8/rage_billboard_nobump/rage_billboard_nobumpPS1.asm @@ -18,7 +18,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.0846050114e-42 // 774 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -28,9 +28,8 @@ def c3, -4, -5, -6, -7 def c4, -8, -9, -10, -11 def c5, -12, -13, -14, -15 - def c6, 9.99999975e-006, 0.5, 0, 0 + def c6, 9.99999975e-006, 0.5, 0, 0.0117647058823529 def c7, 3.99600005, 4, 0.125, 0.25 - def c8, 0.01171875, 0, 0, 0 dcl_color v0.w dcl_texcoord v1 dcl_texcoord1 v2 @@ -138,7 +137,7 @@ mov oC3, -c0.y // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x - mov oC3.x, c8.x + mov oC3.x, c6.w endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/rage_default/rage_defaultPS3.asm b/win32_30_nv8/rage_default/rage_defaultPS3.asm index 46399f662..322879573 100644 --- a/win32_30_nv8/rage_default/rage_defaultPS3.asm +++ b/win32_30_nv8/rage_default/rage_defaultPS3.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.0958153991e-42 // 782 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -77,9 +77,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/rage_default/rage_defaultPS4.asm b/win32_30_nv8/rage_default/rage_defaultPS4.asm index 1eb28000a..7547d43fe 100644 --- a/win32_30_nv8/rage_default/rage_defaultPS4.asm +++ b/win32_30_nv8/rage_default/rage_defaultPS4.asm @@ -24,7 +24,7 @@ // ps_3_0 - def c151, 0.9999, 255, 3, 0.00390625 // Dithering Mask constants + def c151, 0.9999, 0.012156862745098, 0, 0 // Dithering Mask constants def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.0972166976e-42 // 783 def c150, 15.996, 16, 0.0625, 0.0625 // 256 state stipple constants def c127, 0.9999999, 1, 0, 0 // LogDepth constants @@ -78,9 +78,7 @@ // -------------------------------------------------------------- Dithering Mask ---------------------------------------------------------------- if_lt r20.w, c151.x mov r20.z, c52.x - mul r20.z, r20.z, c151.y - add r20.z, r20.z, c151.z - mul oC3.x, r20.z, c151.w + add oC3.x, r20.z, c151.y endif // ---------------------------------------------------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------- Linear2Log ----------------------------------------------------------------- diff --git a/win32_30_nv8/rage_postfx/rage_postfxPS12.asm b/win32_30_nv8/rage_postfx/rage_postfxPS12.asm index 2c6fc8b93..a973811ff 100644 --- a/win32_30_nv8/rage_postfx/rage_postfxPS12.asm +++ b/win32_30_nv8/rage_postfx/rage_postfxPS12.asm @@ -106,9 +106,10 @@ def c123, 2.598078, -1.499997, 2.897778, -0.776454 // ---------------------------------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------- Dithering Mask Constants ---------------------------------------------------------- - def c130, -1, 0, 1, 0.02734375 // 7 - def c131, 0.01171875, 0.015625, 0.04296875, 0.046875 // 3, 4, 11, 12 - def c132, 0.51171875, 0.515625, 0.54296875, 0.546875 // 131, 132, 139, 140 + def c130, -1, 0, 1, 0 + def c131, 0.012156862745098, 0.016078431372549, 0.0435294117647059, 0.0474509803921569 // 3.1, 4.1, 11.1, 12.1 + def c132, 0.5141176470588235, 0.5180392156862745, 0.5454901960784314, 0.5494117647058824 // 131.1, 132.1, 139.1, 140.1 + def c133, 0.027843137254902, 0.0007843137254902, 0, 0 // 7 defi i1, 3, 0, 0, 0 // ---------------------------------------------------------------------------------------------------------------------------------------------- defi i0, 14, 0, 0, 0 // doubled motion blur samples @@ -154,19 +155,22 @@ mad r21.xy, c76, r24.xy, v0 texld r21, r21, s6 add r25.xyzw, r21.x, -c131 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r25.xyzw, r21.x, -c132 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 - add r25.xyzw, r21.x, -c130.w - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, r21.x, -c133.x + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r24.y, r24.y, c130.z endrep mad r24.xy, r24.x, c130.zy, c130.zx endrep - dp3 r30.x, r23, c130.z + dp4_sat r30.x, r23, c130.z // ---------------------------------------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------- FXAA -------------------------------------------------------------------- if_ne c222.x, r31.x diff --git a/win32_30_nv8/rage_postfx/rage_postfxPS14.asm b/win32_30_nv8/rage_postfx/rage_postfxPS14.asm index 0401a9ab5..5a48dad25 100644 --- a/win32_30_nv8/rage_postfx/rage_postfxPS14.asm +++ b/win32_30_nv8/rage_postfx/rage_postfxPS14.asm @@ -106,9 +106,10 @@ def c123, 2.598078, -1.499997, 2.897778, -0.776454 // ---------------------------------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------- Dithering Mask Constants ---------------------------------------------------------- - def c130, -1, 0, 1, 0.02734375 // 7 - def c131, 0.01171875, 0.015625, 0.04296875, 0.046875 // 3, 4, 11, 12 - def c132, 0.51171875, 0.515625, 0.54296875, 0.546875 // 131, 132, 139, 140 + def c130, -1, 0, 1, 0 + def c131, 0.012156862745098, 0.016078431372549, 0.0435294117647059, 0.0474509803921569 // 3.1, 4.1, 11.1, 12.1 + def c132, 0.5141176470588235, 0.5180392156862745, 0.5454901960784314, 0.5494117647058824 // 131.1, 132.1, 139.1, 140.1 + def c133, 0.027843137254902, 0.0007843137254902, 0, 0 // 7 defi i1, 3, 0, 0, 0 // ---------------------------------------------------------------------------------------------------------------------------------------------- defi i0, 14, 0, 0, 0 // doubled motion blur samples @@ -154,19 +155,22 @@ mad r21.xy, c76, r24.xy, v0 texld r21, r21, s6 add r25.xyzw, r21.x, -c131 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r25.xyzw, r21.x, -c132 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 - add r25.xyzw, r21.x, -c130.w - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, r21.x, -c133.x + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r24.y, r24.y, c130.z endrep mad r24.xy, r24.x, c130.zy, c130.zx endrep - dp3 r30.x, r23, c130.z + dp4_sat r30.x, r23, c130.z // ---------------------------------------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------- FXAA -------------------------------------------------------------------- if_ne c222.x, r31.x diff --git a/win32_30_nv8/rage_postfx/rage_postfxPS16.asm b/win32_30_nv8/rage_postfx/rage_postfxPS16.asm index 97f1b2e15..7c1b9656e 100644 --- a/win32_30_nv8/rage_postfx/rage_postfxPS16.asm +++ b/win32_30_nv8/rage_postfx/rage_postfxPS16.asm @@ -106,9 +106,10 @@ def c123, 2.598078, -1.499997, 2.897778, -0.776454 // ---------------------------------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------- Dithering Mask Constants ---------------------------------------------------------- - def c130, -1, 0, 1, 0.02734375 // 7 - def c131, 0.01171875, 0.015625, 0.04296875, 0.046875 // 3, 4, 11, 12 - def c132, 0.51171875, 0.515625, 0.54296875, 0.546875 // 131, 132, 139, 140 + def c130, -1, 0, 1, 0 + def c131, 0.012156862745098, 0.016078431372549, 0.0435294117647059, 0.0474509803921569 // 3.1, 4.1, 11.1, 12.1 + def c132, 0.5141176470588235, 0.5180392156862745, 0.5454901960784314, 0.5494117647058824 // 131.1, 132.1, 139.1, 140.1 + def c133, 0.027843137254902, 0.0007843137254902, 0, 0 // 7 defi i1, 3, 0, 0, 0 // ---------------------------------------------------------------------------------------------------------------------------------------------- defi i0, 14, 0, 0, 0 // doubled motion blur samples @@ -154,19 +155,22 @@ mad r21.xy, c76, r24.xy, v0 texld r21, r21, s6 add r25.xyzw, r21.x, -c131 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r25.xyzw, r21.x, -c132 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 - add r25.xyzw, r21.x, -c130.w - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, r21.x, -c133.x + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r24.y, r24.y, c130.z endrep mad r24.xy, r24.x, c130.zy, c130.zx endrep - dp3 r30.x, r23, c130.z + dp4_sat r30.x, r23, c130.z // ---------------------------------------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------- FXAA -------------------------------------------------------------------- if_ne c222.x, r31.x diff --git a/win32_30_nv8/rage_postfx/rage_postfxPS18.asm b/win32_30_nv8/rage_postfx/rage_postfxPS18.asm index 8c6a5217e..78548ab85 100644 --- a/win32_30_nv8/rage_postfx/rage_postfxPS18.asm +++ b/win32_30_nv8/rage_postfx/rage_postfxPS18.asm @@ -106,9 +106,10 @@ def c123, 2.598078, -1.499997, 2.897778, -0.776454 // ---------------------------------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------- Dithering Mask Constants ---------------------------------------------------------- - def c130, -1, 0, 1, 0.02734375 // 7 - def c131, 0.01171875, 0.015625, 0.04296875, 0.046875 // 3, 4, 11, 12 - def c132, 0.51171875, 0.515625, 0.54296875, 0.546875 // 131, 132, 139, 140 + def c130, -1, 0, 1, 0 + def c131, 0.012156862745098, 0.016078431372549, 0.0435294117647059, 0.0474509803921569 // 3.1, 4.1, 11.1, 12.1 + def c132, 0.5141176470588235, 0.5180392156862745, 0.5454901960784314, 0.5494117647058824 // 131.1, 132.1, 139.1, 140.1 + def c133, 0.027843137254902, 0.0007843137254902, 0, 0 // 7 defi i1, 3, 0, 0, 0 // ---------------------------------------------------------------------------------------------------------------------------------------------- defi i0, 14, 0, 0, 0 // doubled motion blur samples @@ -154,19 +155,22 @@ mad r21.xy, c76, r24.xy, v0 texld r21, r21, s6 add r25.xyzw, r21.x, -c131 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r25.xyzw, r21.x, -c132 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 - add r25.xyzw, r21.x, -c130.w - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, r21.x, -c133.x + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r24.y, r24.y, c130.z endrep mad r24.xy, r24.x, c130.zy, c130.zx endrep - dp3 r30.x, r23, c130.z + dp4_sat r30.x, r23, c130.z // ---------------------------------------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------- FXAA -------------------------------------------------------------------- if_ne c222.x, r31.x diff --git a/win32_30_nv8/rage_postfx/rage_postfxPS24.asm b/win32_30_nv8/rage_postfx/rage_postfxPS24.asm index 8c494d36f..ebe8222aa 100644 --- a/win32_30_nv8/rage_postfx/rage_postfxPS24.asm +++ b/win32_30_nv8/rage_postfx/rage_postfxPS24.asm @@ -111,9 +111,10 @@ def c123, 2.598078, -1.499997, 2.897778, -0.776454 // ---------------------------------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------- Dithering Mask Constants ---------------------------------------------------------- - def c130, -1, 0, 1, 0.02734375 // 7 - def c131, 0.01171875, 0.015625, 0.04296875, 0.046875 // 3, 4, 11, 12 - def c132, 0.51171875, 0.515625, 0.54296875, 0.546875 // 131, 132, 139, 140 + def c130, -1, 0, 1, 0 + def c131, 0.012156862745098, 0.016078431372549, 0.0435294117647059, 0.0474509803921569 // 3.1, 4.1, 11.1, 12.1 + def c132, 0.5141176470588235, 0.5180392156862745, 0.5454901960784314, 0.5494117647058824 // 131.1, 132.1, 139.1, 140.1 + def c133, 0.027843137254902, 0.0007843137254902, 0, 0 // 7 defi i1, 3, 0, 0, 0 // ---------------------------------------------------------------------------------------------------------------------------------------------- defi i0, 14, 0, 0, 0 // doubled motion blur samples @@ -160,19 +161,22 @@ mad r21.xy, c76, r24.xy, v0 texld r21, r21, s7 add r25.xyzw, r21.x, -c131 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r25.xyzw, r21.x, -c132 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 - add r25.xyzw, r21.x, -c130.w - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, r21.x, -c133.x + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r24.y, r24.y, c130.z endrep mad r24.xy, r24.x, c130.zy, c130.zx endrep - dp3 r30.x, r23, c130.z + dp4_sat r30.x, r23, c130.z // ---------------------------------------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------- FXAA -------------------------------------------------------------------- if_ne c222.x, r31.x diff --git a/win32_30_nv8/rage_postfx/rage_postfxPS26.asm b/win32_30_nv8/rage_postfx/rage_postfxPS26.asm index 88c1457fd..dbc016557 100644 --- a/win32_30_nv8/rage_postfx/rage_postfxPS26.asm +++ b/win32_30_nv8/rage_postfx/rage_postfxPS26.asm @@ -111,9 +111,10 @@ def c123, 2.598078, -1.499997, 2.897778, -0.776454 // ---------------------------------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------- Dithering Mask Constants ---------------------------------------------------------- - def c130, -1, 0, 1, 0.02734375 // 7 - def c131, 0.01171875, 0.015625, 0.04296875, 0.046875 // 3, 4, 11, 12 - def c132, 0.51171875, 0.515625, 0.54296875, 0.546875 // 131, 132, 139, 140 + def c130, -1, 0, 1, 0 + def c131, 0.012156862745098, 0.016078431372549, 0.0435294117647059, 0.0474509803921569 // 3.1, 4.1, 11.1, 12.1 + def c132, 0.5141176470588235, 0.5180392156862745, 0.5454901960784314, 0.5494117647058824 // 131.1, 132.1, 139.1, 140.1 + def c133, 0.027843137254902, 0.0007843137254902, 0, 0 // 7 defi i1, 3, 0, 0, 0 // ---------------------------------------------------------------------------------------------------------------------------------------------- defi i0, 14, 0, 0, 0 // doubled motion blur samples @@ -160,19 +161,22 @@ mad r21.xy, c76, r24.xy, v0 texld r21, r21, s7 add r25.xyzw, r21.x, -c131 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r25.xyzw, r21.x, -c132 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 - add r25.xyzw, r21.x, -c130.w - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, r21.x, -c133.x + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r24.y, r24.y, c130.z endrep mad r24.xy, r24.x, c130.zy, c130.zx endrep - dp3 r30.x, r23, c130.z + dp4_sat r30.x, r23, c130.z // ---------------------------------------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------- FXAA -------------------------------------------------------------------- if_ne c222.x, r31.x diff --git a/win32_30_nv8/rage_postfx/rage_postfxPS28.asm b/win32_30_nv8/rage_postfx/rage_postfxPS28.asm index e064d44ba..f5de03a50 100644 --- a/win32_30_nv8/rage_postfx/rage_postfxPS28.asm +++ b/win32_30_nv8/rage_postfx/rage_postfxPS28.asm @@ -72,9 +72,10 @@ def c26, 0.298999995, 0.587000012, 0.114, 0 // ---------------------------------------------------------------------------------------------------------------------------------------------- // ---------------------------------------------------------- Dithering Mask Constants ---------------------------------------------------------- - def c130, -1, 0, 1, 0.02734375 // 7 - def c131, 0.01171875, 0.015625, 0.04296875, 0.046875 // 3, 4, 11, 12 - def c132, 0.51171875, 0.515625, 0.54296875, 0.546875 // 131, 132, 139, 140 + def c130, -1, 0, 1, 0 + def c131, 0.012156862745098, 0.016078431372549, 0.0435294117647059, 0.0474509803921569 // 3.1, 4.1, 11.1, 12.1 + def c132, 0.5141176470588235, 0.5180392156862745, 0.5454901960784314, 0.5494117647058824 // 131.1, 132.1, 139.1, 140.1 + def c133, 0.027843137254902, 0.0007843137254902, 0, 0 // 7 defi i1, 3, 0, 0, 0 // ---------------------------------------------------------------------------------------------------------------------------------------------- defi i0, 14, 0, 0, 0 // doubled motion blur samples @@ -119,19 +120,22 @@ mad r21.xy, c76, r24.xy, v0 texld r21, r21, s5 add r25.xyzw, r21.x, -c131 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r25.xyzw, r21.x, -c132 - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 - add r25.xyzw, r21.x, -c130.w - cmp r22.xyzw, -r25_abs, c130.z, c130.y + add r25.xyzw, r21.x, -c133.x + add r25.xyzw, -r25_abs, c133.y + cmp r22.xyzw, r25, c130.z, c130.y add r23.xyzw, r23, r22 add r24.y, r24.y, c130.z endrep mad r24.xy, r24.x, c130.zy, c130.zx endrep - dp3 r30.x, r23, c130.z + dp4_sat r30.x, r23, c130.z // ---------------------------------------------------------------------------------------------------------------------------------------------- // -------------------------------------------------------------------- FXAA -------------------------------------------------------------------- if_ne c222.x, r31.x