Skip to content

Commit

Permalink
Don't use EnableDefaultLighting for PBR models
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Jan 29, 2019
1 parent d82404f commit ea74e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/PBREffectFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ std::shared_ptr<IEffect> PBREffectFactory::Impl::CreateEffect(

auto effect = std::make_shared<PBREffect>(device, effectflags, derivedPSD, (emissiveTextureIndex != -1));

effect->EnableDefaultLighting();
// We don't use EnableDefaultLighting generally for PBR as it uses Image-Based Lighting instead.

effect->SetAlpha(info.alphaValue);

Expand Down

0 comments on commit ea74e8c

Please sign in to comment.