Skip to content

Commit

Permalink
Merge pull request #58062 from Calinou/panoramaskymaterial-default-black
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Apr 5, 2022
2 parents f00803b + a86deac commit e9699dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scene/resources/sky_material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e9699dc

Please sign in to comment.