-
-
Notifications
You must be signed in to change notification settings - Fork 20.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to pass custom variables between Vertex and Fragment Shader #3268
Comments
problem is that old mobile devices can't do more than that. This will likely be fixed in the migration to GLES3 |
Wow. Seriously? "Attribute" and "varying" qualifiers are not supported on all devices with GLES2? It sounds quite odd to me. I'm not sure if we should care about it, since most likely it's just a couple of outdated and exotic devices. Besides this is a GLES2.0 core functionality - so as many other unimplemented in godot shading language things. |
@Krzycho666 in the meanwhile in shadergraph at least I've been using things like vertex colors and whatnot, any free/leftover carryovers to plug extra data from vertex program into the fragment program. It's not a fix really but in some cases this can help. |
built-in shader lang will be rewritten/improved for 3.0 On Thu, Sep 15, 2016 at 10:36 AM, quantum-entangler <
|
this happened and now you can use varying, closing |
Since godot shading language is quite limited in some cases, there is no way to pass custom variables between Vertex and Fragment Shader. There are predefined variables VAR1 and VAR2 ( which are vec4, but it's only two of them.
This makes writing optimized shaders impossible, since most of the calculations should be made in Vertex shader - but there is no way to pass them forward to Fragment one. Also arrays would make life a lot easier too.
The text was updated successfully, but these errors were encountered: