Facepunch / sbox-issues

176 stars 12 forks source link

Voxel model transparency causes issues with SSAO #6265

Closed Nolankicks closed 2 months ago

Nolankicks commented 2 months ago

Describe the bug

When looking through a voxel model, you will be able to see SSAO through it.

To Reproduce

  1. Create a voxel model.
  2. Add SSAO to your camera.
  3. Look through it.

Expected behavior

It should not be shown.

Media/Files

image image

Additional context

No response

aylaylay commented 2 months ago

a voxel model how? what material?

Nolankicks commented 2 months ago

a voxel model how? what material?

No material, a .vox file using made using Magicavoxel.

Nolankicks commented 2 months ago

image

Nolankicks commented 2 months ago

It shows like this with transparency. Not sure if this is a bug.

Nolankicks commented 2 months ago

image

Nolankicks commented 2 months ago

image

aylaylay commented 2 months ago

vertex_color now works with opaque fade. SSAO will show through but it looks like that's how it works for anything using opaque fade. If you don't like that or think it's wrong then you'll have to open another issue specifically about SSAO