Skip to content

Commit

Permalink
Increased global reflection intensity to match consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
Parallellines0451 committed Jun 28, 2023
1 parent f892557 commit fe845b8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 5x5 gaussian shadow filtering by RaphaelK12 + depth bias tweak
// 5x5 gaussian shadow filtering by RaphaelK12 + depth bias tweak + console-like ambient reflection intensity
// Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844
//
// Parameters:
Expand Down Expand Up @@ -68,6 +68,7 @@
def c11, 0.962339997, -0.194983006, 0.473434001, -0.480026007
def c12, -0.69591397, 0.457136989, -0.203345001, 0.620715976
def c13, -0.326211989, -0.405809999, -0.840143979, -0.0735799968
def c20, 1.6666667, 0, 0, 0
def c95, 0.1, 0, 0, 0
// x y z w
Expand Down Expand Up @@ -466,6 +467,7 @@
add r5.xy, -r1.yzzw, c2.w
mov r5.z, c3.y
texldl r3, r5, s5
mul r3, r3, c20.x // reflection intensity tweak
mul r1.yzw, r0.z, r3.xxyz
mul r0.xzw, r0.x, r1.yyzw
mul r0.xzw, r4.z, r0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 5x5 gaussian shadow filtering by RaphaelK12 + depth bias tweak
// 5x5 gaussian shadow filtering by RaphaelK12 + depth bias tweak + console-like ambient reflection intensity
// Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844
//
// Parameters:
Expand Down Expand Up @@ -71,6 +71,7 @@
def c12, 0.473434001, -0.480026007, 0.519456029, 0.767022014
def c13, -0.203345001, 0.620715976, 0.962339997, -0.194983006
def c16, -0.840143979, -0.0735799968, -0.69591397, 0.457136989
def c20, 1.6666667, 0, 0, 0
def c95, 0.1, 0, 0, 0
// x y z w
Expand Down Expand Up @@ -483,6 +484,7 @@
mad r7.w, r0.w, -c2.w, c2.w
mov r7.z, c0.x
texldl r7, r7, s6
mul r7, r7, c20.x // reflection intensity tweak
mul r3.xyz, r0.x, r7
mul r0.xzw, r0.z, r3.xyyz
mul r0.xzw, r4.z, r0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//
// Console-like ambient reflection intensity
// Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844
//
// Parameters:
Expand Down Expand Up @@ -41,6 +41,7 @@
def c2, 256, -127.999992, 9.99999975e-006, 1.33333337
def c3, -0.5, 0.5, 0.0199999996, 0.00999999978
def c4, 0.75, 0.25, 5, 10
def c20, 1.6666667, 0, 0, 0
dcl_texcoord v0.xy
dcl_texcoord1 v1
dcl_2d s0
Expand Down Expand Up @@ -90,6 +91,7 @@
mul_sat r0.y, r0.y, c0.x
mad r2.w, r0.y, -c0.y, c0.y
texldl r2, r2, s5
mul r2, r2, c20.x // reflection intensity tweak
mul r0.yzw, r0.w, r2.xxyz
mul r0.yzw, r1.w, r0
mul r0.yzw, r3.z, r0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//
// Console-like ambient reflection intensity
// Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844
//
// Parameters:
Expand Down Expand Up @@ -45,6 +45,7 @@
def c4, 1.33333337, -0.5, 0.5, 5
def c5, 0.0199999996, 0.00999999978, 0.75, 0.25
def c6, 10, 0, 0, 0
def c20, 1.6666667, 0, 0, 0
dcl_texcoord v0.xy
dcl_texcoord1 v1
dcl_2d s0
Expand Down Expand Up @@ -108,6 +109,7 @@
mad r2.w, r0.z, -c2.w, c2.w
mov r2.z, c0.x
texldl r2, r2, s6
mul r2, r2, c20.x // reflection intensity tweak
mul r2.xyz, r0.w, r2
mul r2.xyz, r1.w, r2
mul r2.xyz, r3.z, r2
Expand Down

0 comments on commit fe845b8

Please sign in to comment.