mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Don't draw faded translucent parts in the prepass.
This commit is contained in:
parent
592c91df72
commit
47755fd4a0
1 changed files with 3 additions and 0 deletions
|
@ -348,6 +348,9 @@ void lcScene::DrawTranslucentMeshes(lcContext* Context, bool DrawLit, bool DrawF
|
||||||
if (ColorIndex == gDefaultColor)
|
if (ColorIndex == gDefaultColor)
|
||||||
ColorIndex = RenderMesh.ColorIndex;
|
ColorIndex = RenderMesh.ColorIndex;
|
||||||
|
|
||||||
|
if (DrawFadePrepass && !lcIsColorTranslucent(ColorIndex))
|
||||||
|
continue;
|
||||||
|
|
||||||
switch (RenderMesh.State)
|
switch (RenderMesh.State)
|
||||||
{
|
{
|
||||||
case lcRenderMeshState::Default:
|
case lcRenderMeshState::Default:
|
||||||
|
|
Loading…
Reference in a new issue