nature-sim/outline.gdshader
Dan Baker a4f409f877 Improves scene lighting and tree collision
Moves light direction to global shader parameter, enabling dynamic light updates.

Adjusts tree collision shape for better player interaction.

Updates default season to summer.
2025-07-01 11:21:28 +01:00

13 lines
No EOL
251 B
Text

shader_type spatial;
render_mode cull_front, unshaded;
uniform vec3 color : source_color = vec3(0,0,0);
uniform float thickness : hint_range(0.0, 1.0, 0.01) = 0.01;
void vertex() {
VERTEX += thickness*NORMAL;
}
void fragment() {
ALBEDO = color;
}