world: add grass and sky

This commit is contained in:
Simon Ward 2026-01-22 21:48:53 +13:00 committed by Jeremy Baxter
parent 42de0ed122
commit 1017920ee0
3 changed files with 41 additions and 6 deletions

View file

@ -0,0 +1,9 @@
shader_type sky;
uniform vec3 skyColor : source_color;
uniform vec3 horizonColor : source_color;
void sky() {
float col = clamp(EYEDIR.y / 0.05, 0.0, 1.0);
vec3 finalColor = mix(horizonColor,skyColor,col);
COLOR = finalColor;
}