You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 19:11:41 +00:00
Merge pull request #58062 from Calinou/panoramaskymaterial-default-black
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user