diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-08-16 12:41:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 12:41:12 +0200 |
commit | 55d26af5882afb365cb28e06e5df75d25118edc9 (patch) | |
tree | 877810b9cdc21210cf98285f8db2cdb9d8c98f33 | |
parent | 87226cef218a444c86860bb9cf4500c50edfcc4e (diff) | |
parent | 5fce0b3cb53a0db44e4747ea0656af9a778aee22 (diff) |
Merge pull request #51608 from clayjohn/Vulkan-Panorama-sky-hint
Use hint_albedo in SkyMaterials
-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 ec00f9d7b7..5e5c4ae426 100644 --- a/scene/resources/sky_material.cpp +++ b/scene/resources/sky_material.cpp @@ -353,7 +353,7 @@ void PanoramaSkyMaterial::_update_shader() { RS::get_singleton()->shader_set_code(shader, R"( shader_type sky; -uniform sampler2D source_panorama : filter_linear; +uniform sampler2D source_panorama : filter_linear, hint_albedo; void sky() { COLOR = texture(source_panorama, SKY_COORDS).rgb; @@ -576,7 +576,7 @@ uniform vec4 ground_color : hint_color = vec4(1.0); uniform float exposure : hint_range(0, 128) = 0.1; uniform float dither_strength : hint_range(0, 10) = 1.0; -uniform sampler2D night_sky : hint_black; +uniform sampler2D night_sky : hint_black_albedo; const vec3 UP = vec3( 0.0, 1.0, 0.0 ); |