Skip to content

Commit

Permalink
Fix deferred rendering with no lights
Browse files Browse the repository at this point in the history
  • Loading branch information
asny committed Nov 28, 2024
1 parent 47a5957 commit a6177cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/effect/lighting_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl Effect for LightingPassEffect {
color_texture: Option<ColorTexture>,
depth_texture: Option<DepthTexture>,
) {
program.use_uniform(
program.use_uniform_if_required(
"lightingModel",
lighting_model_to_id(LightingModel::Cook(
NormalDistributionFunction::TrowbridgeReitzGGX,
Expand Down

0 comments on commit a6177cb

Please sign in to comment.