Skip to content

Commit

Permalink
fix a typo that prevented some spot shadows to appear
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflinger committed Jan 13, 2025
1 parent 29d2d81 commit d524bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filament/src/ShadowMapManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class ShadowMapManager {

auto& getShadowUniformsHandle() const { return mShadowUbh; }

bool hasSpotShadows() const { return !mSpotShadowMapCount; }
bool hasSpotShadows() const { return mSpotShadowMapCount > 0; }

// for debugging only
utils::FixedCapacityVector<Camera const*> getDirectionalShadowCameras() const noexcept;
Expand Down

0 comments on commit d524bca

Please sign in to comment.