summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-05 15:21:01 +0200
committerGitHub <noreply@github.com>2022-04-05 15:21:01 +0200
commite9699dca02048986a4de0920f2f8fd6ab31ffbed (patch)
tree47e7a6afb5695a7f2321587532450595bc17a561 /scene/resources
parentf00803b8a5e1e8c584424bc2e86f83f061857dad (diff)
parenta86deac049a87020f6a400f6817dc7e82cad8caa (diff)
Merge pull request #58062 from Calinou/panoramaskymaterial-default-black
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/sky_material.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/resources/sky_material.cpp b/scene/resources/sky_material.cpp
index 54543782f6..4681d3d6e3 100644
--- a/scene/resources/sky_material.cpp
+++ b/scene/resources/sky_material.cpp
@@ -404,8 +404,11 @@ void PanoramaSkyMaterial::_update_shader() {
// Add a comment to describe the shader origin (useful when converting to ShaderMaterial).
RS::get_singleton()->shader_set_code(shader_cache[i], vformat(R"(
// NOTE: Shader automatically converted from )" VERSION_NAME " " VERSION_FULL_CONFIG R"('s PanoramaSkyMaterial.
+
shader_type sky;
-uniform sampler2D source_panorama : %s, hint_albedo;
+
+uniform sampler2D source_panorama : %s, hint_black_albedo;
+
void sky() {
COLOR = texture(source_panorama, SKY_COORDS).rgb;
}