Facepunch / sbox-issues

175 stars 12 forks source link

Transparent materials showing as error textures #4577

Open rtm516 opened 9 months ago

rtm516 commented 9 months ago

Describe the bug

When previewing the a material using the glass shader the preview just shows as error textures. The same occurs when using it to override the material on a model renderer.

To Reproduce

  1. Create a material using the glass shader 2a. Check out the preview in the inspector when selected in the asset browser 2b. Apply the material to a model renderer as a material override
  2. See purple/black squares

Expected behavior

The material shows without purple/black squares

Media/Files

Material override: image

Inspector: image

Material config: image

Additional context

No response

handsomematt commented 9 months ago

I'd say the sceneobjects aren't getting flagged as needing a framebuffer copy, or the shader is using the wrong attribute.