Pleca Posted December 9 Share Posted December 9 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 Link to comment Share on other sites More sharing options...
Josh Posted December 10 Share Posted December 10 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. Link to comment Share on other sites More sharing options...
Josh Posted December 10 Share Posted December 10 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. Link to comment Share on other sites More sharing options...
Solution Josh Posted December 10 Solution Share Posted December 10 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. Link to comment Share on other sites More sharing options...
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.