Skip to content

Commit

Permalink
Make gltf directional lights cast shadow by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mokiat committed Sep 28, 2024
1 parent 0a2e1e4 commit b9895a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/asset/dsl/provider_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ func BuildModelResource(gltfDoc *gltf.Document, forceCollision bool) (*mdl.Model

light := mdl.NewDirectionalLight()
light.SetEmitColor(emitColor)
light.SetCastShadow(false)
light.SetCastShadow(true)
return light
}

Expand Down

0 comments on commit b9895a0

Please sign in to comment.