Skip to content

Commit

Permalink
xrRender_R1: fixed trees rendering when FFP with constant lighting is on
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Apr 28, 2023
1 parent 88766c7 commit 6ecf818
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Layers/xrRender/blenders/Blender_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void CBlender_Tree::CompileFFP(CBlender_Compile& C) const
else
C.PassSET_Blend_SET(TRUE, 200);

if (ps_r1_ffp_lighting_mode == R1_FFP_LIGHTING_CONSTANT)
/*if (ps_r1_ffp_lighting_mode == R1_FFP_LIGHTING_CONSTANT)
{
C.PassSET_LightFog(TRUE, TRUE);
Expand All @@ -69,9 +69,12 @@ void CBlender_Tree::CompileFFP(CBlender_Compile& C) const
C.StageSET_TMC(oT_Name, "$null", "$null", 0);
C.StageEnd();
}
else
else*/
{
C.PassSET_Shaders("tree_wave", "null");
if (oNotAnTree.value)
C.PassSET_Shaders("tree_s", "null");
else
C.PassSET_Shaders("tree_wave", "null");

switch (C.iElement)
{
Expand Down

1 comment on commit 6ecf818

@Xottab-DUTY
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.