Fixed lighting
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user