src / world / world.gdshader

Attached Scenes

Note
No attached scenes.

Content

// NOTE: Shader automatically converted from Godot Engine 4.3.stable's PanoramaSkyMaterial.

shader_type sky;

uniform sampler2D source_panorama : filter_linear, source_color, hint_default_black;
uniform float sunny = 0.0; // night: 0.0, day: 1.0
const vec3 morning_tint	= vec3(18.0, 15.0, 8.0);
const vec3 night_tint 	= vec3(1.0, 1.0, 1.0);

void sky() {
	COLOR = texture(source_panorama, SKY_COORDS).rgb * mix(night_tint, morning_tint, sunny);
}