Skip to content

Commit

Permalink
fix light volumes on pumpkins
Browse files Browse the repository at this point in the history
  • Loading branch information
fallahn committed Oct 23, 2024
1 parent 15e5378 commit 8369f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/golf/src/golf/GolfState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3226,7 +3226,7 @@ void GolfState::buildScene()
entity = m_gameScene.createEntity();
entity.addComponent<cro::Transform>().setPosition(Positions[i]);
entity.getComponent<cro::Transform>().setScale(glm::vec3(LightRadius));
md.createModel(entity);
m_lightVolumeDefinition.createModel(entity);
entity.getComponent<cro::Model>().setHidden(true);
entity.addComponent<cro::LightVolume>().radius = LightRadius;
entity.getComponent<cro::LightVolume>().colour = cro::Colour(1.f, 0.55f, 0.1f);
Expand Down

0 comments on commit 8369f0d

Please sign in to comment.