Skip to content
Snippets Groups Projects
Commit 14f3b77b authored by Tofu Linden's avatar Tofu Linden
Browse files

strengthen the fakey blur in the fakey ssreflections.

(transplanted from 940e02cbe4fa2f996d11500392e71f3a00e1cfed)
parent 2f19ad59
No related branches found
No related tags found
No related merge requests found
...@@ -299,7 +299,7 @@ void main() ...@@ -299,7 +299,7 @@ void main()
// The goal of the blur is to soften reflections in surfaces // The goal of the blur is to soften reflections in surfaces
// with low shinyness, and also to disguise our lameness. // with low shinyness, and also to disguise our lameness.
float checkerboard = floor(mod(tc.x+tc.y, 2.0)); // 0.0, 1.0 float checkerboard = floor(mod(tc.x+tc.y, 2.0)); // 0.0, 1.0
vec2 checkoffset = normalize(ref2d)*5.0*(1.0-spec.a)*(checkerboard-0.5); vec2 checkoffset = normalize(ref2d)*9.0*(1.0-spec.a)*(checkerboard-0.5);
ref2d += checkoffset; ref2d += checkoffset;
ref2d += tc.xy; // use as offset from destination ref2d += tc.xy; // use as offset from destination
// Get attributes from the 2D guess point. // Get attributes from the 2D guess point.
......
...@@ -298,7 +298,7 @@ void main() ...@@ -298,7 +298,7 @@ void main()
// The goal of the blur is to soften reflections in surfaces // The goal of the blur is to soften reflections in surfaces
// with low shinyness, and also to disguise our lameness. // with low shinyness, and also to disguise our lameness.
float checkerboard = floor(mod(tc.x+tc.y, 2.0)); // 0.0, 1.0 float checkerboard = floor(mod(tc.x+tc.y, 2.0)); // 0.0, 1.0
vec2 checkoffset = normalize(ref2d)*5.0*(1.0-spec.a)*(checkerboard-0.5); vec2 checkoffset = normalize(ref2d)*9.0*(1.0-spec.a)*(checkerboard-0.5);
ref2d += checkoffset; ref2d += checkoffset;
ref2d += tc.xy; // use as offset from destination ref2d += tc.xy; // use as offset from destination
// Get attributes from the 2D guess point. // Get attributes from the 2D guess point.
......
...@@ -301,7 +301,7 @@ void main() ...@@ -301,7 +301,7 @@ void main()
// The goal of the blur is to soften reflections in surfaces // The goal of the blur is to soften reflections in surfaces
// with low shinyness, and also to disguise our lameness. // with low shinyness, and also to disguise our lameness.
float checkerboard = floor(mod(tc.x+tc.y, 2.0)); // 0.0, 1.0 float checkerboard = floor(mod(tc.x+tc.y, 2.0)); // 0.0, 1.0
vec2 checkoffset = normalize(ref2d)*5.0*(1.0-spec.a)*(checkerboard-0.5); vec2 checkoffset = normalize(ref2d)*9.0*(1.0-spec.a)*(checkerboard-0.5);
ref2d += checkoffset; ref2d += checkoffset;
ref2d += tc.xy; // use as offset from destination ref2d += tc.xy; // use as offset from destination
// Get attributes from the 2D guess point. // Get attributes from the 2D guess point.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment