mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix computation of screen_uv
This commit is contained in:
parent
e8520044e7
commit
52aeaf5d16
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue