Facepunch / sbox-issues

175 stars 12 forks source link

[Standalone] Shader overrides don't get exported #6080

Open rzkid opened 1 month ago

rzkid commented 1 month ago

Describe the bug

If you have a shader override (a copy of Addons\base shader inside the project, that gets used insead) and it actually works, the editor uses it instead of the original, when you export the build, the new local shader is nowhere to be found, and you are left with the original shader. If you manually copy it over to where your editor project had it to override it, it starts working again.

To Reproduce

  1. Have one of the base shaders overrriden (the one there are sources for)
  2. Export the build
  3. Notice the shader file is not there and it doesn't appear in it's edited form ingame

Expected behavior

It should copy the overriden shader too, and use that instead.

Media/Files

Assets\shaders in editor image Assets\shaders in exported build, ColorGrading.shader_c is not present image

Additional context

No response

xezno commented 3 weeks ago

Does this work if you upload your game to the backend?

rzkid commented 3 weeks ago

Actually, no, it also doesn't work there (I never touched the platform uploading so would never know)

I put a full inverted screen "tonemap" so its easier to see, works in editor 2024 08 21_20 02 38

gone in the upload (cubes are the new color so the game is definitely "new") 2024 08 21_20 05 13