cmontiel
Member
|
[SOLVED] Custom GL Shaders
For iOS / android , I allways compiled shaders in a project for mac (OpenGL context) and then I pack shaders inside Data.pak. But after last change of shader headers (23 october) they don't work for ios , android. I see strange/black textures.
I have tried again with latest EE (2.0) version with the same result.
PD, custom shaders for windows are working.
(This post was last modified: 11-16-2013 03:03 AM by cmontiel.)
|
|
11-13-2013 08:39 PM |
|
Esenthel
Administrator
|
RE: Custom GL Shaders
Hi, Did you update the latest shader headers?
Please try downloading latest version from EE Store.
Side Note: now that I think of it, they will work only with 2.0, for 1.0 please try using an older backup of the shader headers.
If you have anymore issues, please let me know.
|
|
11-14-2013 11:24 PM |
|
cmontiel
Member
|
RE: Custom GL Shaders
Lastest shader headers. Lastest EE version dowloaded from EE Store (2.0 for Mac).
When I compile shaders , I don't get errors or warnings and files have size (4-6kb) as usually. But they don't work on ios / android. I guess neither on mac.
Exactly the same shader code works for windows.
I've ported my project to 2.0 , I expect you release final 1.0 version with the same changes of 2.0.
(This post was last modified: 11-15-2013 01:39 AM by cmontiel.)
|
|
11-15-2013 01:38 AM |
|
Esenthel
Administrator
|
RE: Custom GL Shaders
1. After you've compiled the shader code, did you put that file into the project?
2. Can you send me a small 2.0 project with a custom shader (source) so I could try it myself?
|
|
11-15-2013 02:55 AM |
|
cmontiel
Member
|
RE: Custom GL Shaders
1) Yes , of course...
2) Sure, I send you by pm (EE shader headers included). It can be reproduced on mac too with EE shader tutorials.
|
|
11-15-2013 04:02 PM |
|
Esenthel
Administrator
|
RE: Custom GL Shaders
You're not using latest EsenthelEngineShaders.
http://www.esenthel.com/?id=store&item=10
Structs.h yours:
Vec4 _pos :ATTR0 ;
mVec _hlp :ATTR1 ;
..
Structs.h latest:
Vec4 _pos :ATTR0 ;
mVec _hlp :ATTR9 ;
..
|
|
11-16-2013 01:22 AM |
|
cmontiel
Member
|
RE: Custom GL Shaders
Thank you. Very strange, I donwnloaded shaders header from store like 3 times this week :S.
|
|
11-16-2013 01:50 AM |
|