Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Aug 31, 2024
1 parent b2d37a5 commit 73c3b96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/v3dsceneshadows.pas
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ interface
configurations (bump mapping, fill modes etc.) }
TV3DShadowsViewport = class(TMyViewport)
protected
// TODO: use this, once https://github.com/castle-engine/castle-engine/tree/optimize-shapes-collection merged
{$ifdef CGE_NEW_RENDER_ONE_PASS}
procedure RenderOnePass(const Params: TRenderParams;
const UsingBlending: Boolean;
const FilterShadowVolumesReceivers: TBooleanSet); override;
{$endif}
end;

var
Expand All @@ -58,6 +61,7 @@ procedure ViewportShadowsProperties(Viewport: TCastleViewport);
Viewport.ShadowVolumesRender := ShadowVolumesRender;
end;

{$ifdef CGE_NEW_RENDER_ONE_PASS}
procedure TV3DShadowsViewport.RenderOnePass(const Params: TRenderParams;
const UsingBlending: Boolean;
const FilterShadowVolumesReceivers: TBooleanSet);
Expand Down Expand Up @@ -85,5 +89,6 @@ procedure TV3DShadowsViewport.RenderOnePass(const Params: TRenderParams;
inherited;
end;
end;
{$endif}

end.

0 comments on commit 73c3b96

Please sign in to comment.