Pleca Posted December 9, 2024 Posted December 9, 2024 Hello Josh, I'm encountering these errors with new Bloom effect in Lua Project: Error: Failed to compile "G:/Development/UltraEngine/TestBloomEffect/Shaders/PostEffects/BloomPrefilter.frag" ERROR: 0:4: '#version' : must occur first in shader ERROR: 0:4: '#version' : bad profile name; use es, core, or compatibility ERROR: 0:4: '#version' : bad tokens following profile -- expected newline ERROR: 0:4: '' : compilation terminated ERROR: 4 compilation errors. No code generated. Error: Failed to compile "G:/Development/UltraEngine/TestBloomEffect/Shaders/PostEffects/BloomDownSample.frag" ERROR: 0:4: '#version' : must occur first in shader ERROR: 0:4: '#version' : bad profile name; use es, core, or compatibility ERROR: 0:4: '#version' : bad tokens following profile -- expected newline ERROR: 0:4: '' : compilation terminated ERROR: 4 compilation errors. No code generated. Error: Failed to compile "G:/Development/UltraEngine/TestBloomEffect/Shaders/PostEffects/BloomUpscaleCombine.frag" ERROR: 0:4: '#version' : must occur first in shader ERROR: 0:4: '#version' : bad profile name; use es, core, or compatibility ERROR: 0:4: '#version' : bad tokens following profile -- expected newline ERROR: 0:4: '' : compilation terminated ERROR: 4 compilation errors. No code generated. Error: Failed to compile "G:/Development/UltraEngine/TestBloomEffect/Shaders/PostEffects/BloomFinalPass.frag" ERROR: 0:4: '#version' : must occur first in shader ERROR: 0:4: '#version' : bad profile name; use es, core, or compatibility ERROR: 0:4: '#version' : bad tokens following profile -- expected newline ERROR: 0:4: '' : compilation terminated ERROR: 4 compilation errors. No code generated. Quote
Josh Posted December 10, 2024 Posted December 10, 2024 What GPU do you have? Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Josh Posted December 10, 2024 Posted December 10, 2024 Actually, I get the same thing in a new project...hold on... Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Solution Josh Posted December 10, 2024 Solution Posted December 10, 2024 Okay, this was just caused because I put a comment in the shaders before the #version directive. It's fixed now. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.