Skip to content

Commit

Permalink
Fix wrong setShadowReceiver
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasGorisse committed Feb 15, 2022
1 parent 445d78e commit b2ac2d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public void setShadowReceiver(boolean isShadowReceiver) {
RenderableManager renderableManager = EngineInstance.getEngine().getRenderableManager();
@EntityInstance int renderableInstance = renderableManager.getInstance(getEntity());
if (renderableInstance != 0) {
renderableManager.setCastShadows(renderableInstance, isShadowCaster);
renderableManager.setReceiveShadows(renderableInstance, isShadowReceiver);
}
//TODO : Verify if we don't need to apply the parameter to child entities
// for (int i = 0; i < entities.length; i++) {
Expand Down

0 comments on commit b2ac2d9

Please sign in to comment.