Skip to content

Bug: $decal doesnt work with $MostlyOpaque #1813

@lenship2

Description

@lenship2

Describe the bug

When a model has $MostlyOpaque specified in the qc flags, a $decal material will fail to render. This means that a workflow using $decal materials and flat planes on a model won't work with translucency, which is incredibly annoying because you have to manually emulate the decal effect by offsetting the plane 0.01 units.

Weirdly enough, this doesn't occur if you add $decal 1 and reload the material in game, it only happens upon map load

$decal 0

Image

$decal 1

Image

$decal 1 material on a non mostlyopaque model

Image

To Reproduce

  1. Have a mostlyopaque model
  2. Have it reference a material with $decal 1
  3. Observe in game

Issue Map

N/A

Expected Behavior

$decal should not be invisible when used on a $mostlyopaque model

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugThis is a problem with something that should be working one way, but isn't.What: GraphicsGraphics-related stuff

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions