diff options
author | clayjohn <claynjohn@gmail.com> | 2023-03-10 10:48:45 -0800 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-14 13:59:05 +0100 |
commit | 5f6a53456987fbffd9b6d12714485c337b0c17ac (patch) | |
tree | 1a1bb8a63ad9ddee54de33bf488013004b3ad99a | |
parent | 59a78ecf5af2f3677d6895eab9054825020f85f7 (diff) |
Use linear filtering without mipmaps for ProceduralSkyMaterial and PhysicalSkyMaterial
(cherry picked from commit 572ac915145e7ccb6d32ab5c356076820e964433)
-rw-r--r-- | scene/resources/sky_material.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/sky_material.cpp b/scene/resources/sky_material.cpp index 9528b23e32..065132516b 100644 --- a/scene/resources/sky_material.cpp +++ b/scene/resources/sky_material.cpp @@ -269,7 +269,7 @@ uniform vec4 sky_top_color : source_color = vec4(0.385, 0.454, 0.55, 1.0); uniform vec4 sky_horizon_color : source_color = vec4(0.646, 0.656, 0.67, 1.0); uniform float sky_curve : hint_range(0, 1) = 0.15; uniform float sky_energy = 1.0; // In Lux. -uniform sampler2D sky_cover : source_color, hint_default_black; +uniform sampler2D sky_cover : filter_linear, source_color, hint_default_black; uniform vec4 sky_cover_modulate : source_color = vec4(1.0, 1.0, 1.0, 1.0); uniform vec4 ground_bottom_color : source_color = vec4(0.2, 0.169, 0.133, 1.0); uniform vec4 ground_horizon_color : source_color = vec4(0.646, 0.656, 0.67, 1.0); @@ -676,7 +676,7 @@ uniform float sun_disk_scale : hint_range(0, 360) = 1.0; uniform vec4 ground_color : source_color = vec4(0.1, 0.07, 0.034, 1.0); uniform float exposure : hint_range(0, 128) = 1.0; -uniform sampler2D night_sky : source_color, hint_default_black; +uniform sampler2D night_sky : filter_linear, source_color, hint_default_black; const vec3 UP = vec3( 0.0, 1.0, 0.0 ); |