hi, i use the Empty project from Kore and would have some uniforms in the fragment shader.
I put a vec2 variable in the shader.frag.glsl:
uniform vec2 iMouse;
Add a line in the kore function of the Shader.cpp after pipeline->compile():
mousePos = pipeline->getConstantLocation("iMouse");
And after Graphics4::setPipeline(pipeline) in the update function add a line:
Graphics4::setFloat2(mousePos, (float)mouseX, (float)mouseY);
I get always this error message:
Uniform iMouse not found.
The program compile without errors, mouseX and mouseY are valid integers and mousePos is a Graphics4::ConstantLocation.
Hope for help after hours with trial and error.