@pxt wrote:
Hello!
i ve a problem to pass mouse coordinates to a shader:
im doing this in OF:glm::vec3 pp = glm::vec3(ofGetMouseX(), ofGetMouseY(), 0); firstPass.shader.setUniform3f("pos",pp);
and in the shader
**vec2** toCenter = **vec2** (0.5)-pos.xy;
**float** angle = atan(toCenter.y,toCenter.x); **float** radius = (length(toCenter));
but this dont get the derise effect ( just draw a circle around that coordinate)
what im doing wrong?
I know that im receiving the information, becouse i tried to put that values into a mix function, but with weird results
Posts: 1
Participants: 1