Help with shader error at u_time #2270
-
Hello,
I get this error: Assertion failed!
Being new to glsl, this is cryptic to me at this point. So I tried to debug the code above, and I pinned down that there is something I do get a distorted image by a sin wave But of course it is static because the u_time is not evaluating. The code in axmol to load the shader is:
I don't thing it has to do anything with it, but just in case. thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 15 replies
-
@rudiHammad In the wiki, it shows an example of the structure of the shader. Also, the included shaders in the Axmol source can be use as an example of how to correctly write a shader. You should be able to easily see the differences between those and your implementation. |
Beta Was this translation helpful? Give feedback.
-
okey, I give up. |
Beta Was this translation helpful? Give feedback.
-
I think should refer to this guide: https://github.com/axmolengine/axmol/wiki/Shaders-in-Axmol |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Got it, now everything is working exactly as you said in that quick point by point guide from your last answer. It could be just me, but ultimately the thing that confused me was the fact that you have to run every time the build command (in my case : Just those 6 points you wrote made things really clear, at least for me. ps: at point 1 you meant a folder named shaders instead of shader, right? |
Beta Was this translation helpful? Give feedback.
-
I Just adapted it to Shader toy with this:
Once we get use to move between shader toy and axmol by adapting the in and out parameters, testing things in real time get easier. |
Beta Was this translation helpful? Give feedback.
I think should refer to this guide: https://github.com/axmolengine/axmol/wiki/Shaders-in-Axmol