Facepunch / sbox-issues

176 stars 12 forks source link

Cubemap reflections break if lighting is not baked. #3937

Open FullStack0verfl0w opened 1 year ago

FullStack0verfl0w commented 1 year ago

Describe the bug

For some reason hammer assigns wrong cubemap texture for the rest of cubemaps. In the game it looks fine, except the other issues I have reported.

To Reproduce

  1. Create a map with two or three cubemaps.
  2. Bake preview lighting to build cubemaps.
  3. Switch to Cubemap Reflections mode.

Expected behavior

Cubemaps should have their own texture, not some other cubemap.

Media/Files

Screenshot

Additional context

No response

FullStack0verfl0w commented 1 year ago

I also found this strange behavior:

https://github.com/sboxgame/issues/assets/36414434/e2cac272-5f22-4b90-a7b6-fec3c7c02e1d

FullStack0verfl0w commented 1 year ago

Turns out this also happens in the game when lighting is not baked.

image