Skip to content

Commit

Permalink
Restore TV3DShadowsViewport.RenderOnePass applying solid color
Browse files Browse the repository at this point in the history
Fixes #101
  • Loading branch information
michaliskambi committed Sep 3, 2024
1 parent dcbfa91 commit 343b1fb
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions code/v3dsceneshadows.pas
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ 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;
procedure RenderOnePass(const Params: TRenderParams
{$ifdef CGE_NEW_ONE_PASS_RENDERING} ;
const UsingBlending: Boolean;
const FilterShadowVolumesReceivers: TBooleanSet); override;
{$endif}
const FilterShadowVolumesReceivers: TBooleanSet
{$endif}); override;
end;

var
Expand All @@ -61,10 +60,11 @@ procedure ViewportShadowsProperties(Viewport: TCastleViewport);
Viewport.ShadowVolumesRender := ShadowVolumesRender;
end;

{$ifdef CGE_NEW_RENDER_ONE_PASS}
procedure TV3DShadowsViewport.RenderOnePass(const Params: TRenderParams;
procedure TV3DShadowsViewport.RenderOnePass(const Params: TRenderParams
{$ifdef CGE_NEW_ONE_PASS_RENDERING} ;
const UsingBlending: Boolean;
const FilterShadowVolumesReceivers: TBooleanSet);
const FilterShadowVolumesReceivers: TBooleanSet
{$endif});

procedure RenderOnePassShadowsBegin(Scene: TCastleScene);
begin
Expand All @@ -89,6 +89,5 @@ procedure TV3DShadowsViewport.RenderOnePass(const Params: TRenderParams;
inherited;
end;
end;
{$endif}

end.

0 comments on commit 343b1fb

Please sign in to comment.