Skip to content

Commit

Permalink
Fix computation of screen_uv
Browse files Browse the repository at this point in the history
  • Loading branch information
somnathsarkar committed May 16, 2022
1 parent e852004 commit 52aeaf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/gles3/shaders/scene.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ void main() {

float normal_map_depth = 1.0;

vec2 screen_uv = gl_FragCoord.xy * scene_data.screen_pixel_size + scene_data.screen_pixel_size * 0.5; //account for center
vec2 screen_uv = gl_FragCoord.xy * scene_data.screen_pixel_size;

float sss_strength = 0.0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ void main() {

float normal_map_depth = 1.0;

vec2 screen_uv = gl_FragCoord.xy * scene_data.screen_pixel_size + scene_data.screen_pixel_size * 0.5; //account for center
vec2 screen_uv = gl_FragCoord.xy * scene_data.screen_pixel_size;

float sss_strength = 0.0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ void main() {

float normal_map_depth = 1.0;

vec2 screen_uv = gl_FragCoord.xy * scene_data.screen_pixel_size + scene_data.screen_pixel_size * 0.5; //account for center
vec2 screen_uv = gl_FragCoord.xy * scene_data.screen_pixel_size;

float sss_strength = 0.0;

Expand Down

0 comments on commit 52aeaf5

Please sign in to comment.