I am making app by using javascript and webgl. I want to get uniform value from shader with javascript code.
This is my vertex shader
var VertexShaderCode= "precision mediump float;"+
"attribute vec3 vertexPos;" +
"uniform mat4 modelViewMatrix;" +
"uniform mat4 projectionMatrix;" +
"uniform float pointSize;"+
"void main(void) {" +
"gl_Position= projectionMatrix*modelViewMatrix*vec4(vertexPos, 1.0);" +
"gl_PointSize=pointSize;"+
"}"
I want to get pointSize value by using javascript and then I want to use this value in javascript code.
Any ideas?What should I do?