world: added grass and sky
This commit is contained in:
parent
42de0ed122
commit
0a384e32c8
3 changed files with 41 additions and 6 deletions
9
Shaders/SkyShader.gdshader
Normal file
9
Shaders/SkyShader.gdshader
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue