Fixed lighting

This commit is contained in:
2025-12-16 09:13:22 -07:00
parent de5f47f47b
commit 32df388c77
6 changed files with 85 additions and 66 deletions

View File

@@ -11,7 +11,19 @@ import (
func CreatePlains(screenWidth, screenHeight float64) *Map {
m := NewMap("plains", 1, "Plains", screenWidth, screenHeight)
m.BackgroundColor = color.NRGBA{R: 135, G: 206, B: 235, A: 255}
m.TimeOfDay = Daytime
m.Lighting = LightConfig{
AmbientBrightness: 0.3,
Sources: []LightSource{
{
X: screenWidth - 80,
Y: 80,
Radius: 600,
Color: color.RGBA{R: 255, G: 250, B: 220, A: 255},
Intensity: 0.7,
ShadowDarkness: 0.5,
},
},
}
// ground surface
groundColor := color.NRGBA{R: 34, G: 139, B: 34, A: 255}