Error with MagicBloom shader:

  • Posts: 2
10 months 2 weeks ago #1 by Yago
Hi. I have a error with Magicbloom shader:
18:27:12:370 [06152] | ERROR | Failed to compile "D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx":
D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx(88, 35): error X3011: 'lowest_mip': initial value must be a literal expression
D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx(190, 10): error X3011: value must be a literal expression
D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx(213, 109): error X3538: value must be a literal scalar expression

How to fix this?

Please Log in or Create an account to join the conversation.

  • Posts: 176
10 months 2 weeks ago #2 by Daodan
Looks like you are using an old version of MagicBloom with a new vesion of ReShade (which doesn't allow using intrinsics on constants ).
Try downloading the latest version of MagicBloom form the repo and see if that fixes the issue.

Please Log in or Create an account to join the conversation.

  • Posts: 2
10 months 2 weeks ago #3 by Yago
After update MagicBloom appear next error:
23:31:52:847 [10032] | ERROR | Failed to compile "D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx":
D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx(98, 1): error X3000: syntax error: unexpected 'identifier', expected '='
D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx(120, 1): error X3000: syntax error: unexpected 'identifier', expected '='
D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx(132, 1): error X3000: syntax error: unexpected 'identifier', expected '='
D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx(156, 1): error X3000: syntax error: unexpected 'identifier', expected '='
D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx(169, 1): error X3000: syntax error: unexpected 'identifier', expected '='
D:\Program Files (x86)\XPlane-11\reshade-shaders\Shaders\MagicBloom.fx(181, 1): error X3000: syntax error: unexpected 'identifier', expected '='

Please Log in or Create an account to join the conversation.

  • Posts: 176
10 months 1 week ago #4 by Daodan
Ah. There was a dependency added to the shader: ReShadeUI.fxh
I think it would be best for you to just download the whole repository as other shaders also use ReShadeUI.fxh.

Please Log in or Create an account to join the conversation.

  • Posts: 3665
10 months 1 week ago #5 by crosire
Just use the setup tool to update to a new version. It will update shaders too when asked, but keeps your config and presets intact.

Please Log in or Create an account to join the conversation.