Facepunch / sbox-issues

175 stars 12 forks source link

Multiple issues with cubemaps. #3604

Open FullStack0verfl0w opened 1 year ago

FullStack0verfl0w commented 1 year ago

Describe the bug

The description of the property says: Amount of feathering to apply to the cubemap edges to blend with other envmaps. In reality it doesn't do anything.

To Reproduce

  1. Create two env_cubemaps_box.
  2. Build baked lighting and turn on Cubemap Reflections visualization mode.
  3. Play with Blending Feathering property.
  4. See that nothing changes.

Expected behavior

It should apply feathering to cubemap edges.

Media/Files

image image

Additional context

No response

PixelQubed commented 1 year ago

This has been a problem for a long time. It gets fixed temporarily but it always comes back.

FullStack0verfl0w commented 1 year ago

Okay, I thought it only works on props, but now I don't know how it works. Every cubemaps on the screenshot have Blending Feathering set to 1, but the result doesn't seem quite right. Cubemap 1 and Cubemap 2 have no feathering applied, but Cubemap 2 and Cubemap 3 have it. Priority of the Cubemap 1 and Cubemap 3 is set to highest, Cubemap 2 has high priority. image

FullStack0verfl0w commented 1 year ago

Also I have found out that priority of cubemaps is broken for meshes. When two cubemaps overlap, the one with lowest priority shows in that region. On props it works fine. cubemaps

Xenthio commented 1 year ago

This issue applies ingame too