rmordechay / glsl-plugin-idea

GLSL support for JetBrains IDE's
Apache License 2.0
33 stars 11 forks source link

Dynamic type check is problematic! #42

Open TcePrepK opened 6 days ago

TcePrepK commented 6 days ago

As you can see from the next code, doing something like this confuses the plugin. mat2 * vec2 is supposed to result in vec2 which should be calling floatFunc but plugin can not find any "proper" function for the call.


float floatFunc(vec2 p) {
    return 0.0;
}

void mainFunc(vec2 pos) {
    mat2 rotation = mat2(1.0, 0.0, 0.0, 1.0);
    float data = floatFunc(rotation * pos);
}