Skip to content

Commit

Permalink
[REGRESSION] Fix crash when using transparency (#453)
Browse files Browse the repository at this point in the history
Bug was introduced in 188068f
Enabling transparency with setTransparent( 0.5f ) would cause a crash if
point light shadow mapping is enabled.

A new shader code snippet should only be included in shadow casters if
doing alpha hashing.

Fixes #453
  • Loading branch information
darksylinc committed Jul 25, 2024
1 parent 25dd834 commit 68a8cc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Samples/Media/Hlms/Pbs/Any/Main/800.PixelShader_piece_ps.any
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,9 @@
@insertpiece( SampleDiffuseMap )
@end
@insertpiece( DoShadowCastPS )
@insertpiece( ProcessAlpha )
@property( hlms_alpha_hash )
@insertpiece( ProcessAlpha )
@end
@end

@end

0 comments on commit 68a8cc7

Please sign in to comment.