forked from townforge/townforge
game: fix light pointer
This commit is contained in:
parent
df53984294
commit
f12acf0836
@ -2260,7 +2260,7 @@ void CryptoCityUrho3D::SetShadowDistance(TBID distance)
|
||||
}
|
||||
else if (distance != TBID("shadowdist-low")) printf("Invalid Shadow distance\n");
|
||||
|
||||
Light* sun = mainLightNode->GetComponent<Light>();
|
||||
Light *sun = mainLightNode->GetComponent<Light>();
|
||||
if (sun) sun->SetShadowCascade(CascadeParameters(25.0f, near_shadow, far_shadow, 0.0f, 0.8f));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user