シェーダーテスト(マウス)
code:fragment-shader.glsl
uniform vec2 u_mouse;
uniform vec2 u_resolution;
void main() {
vec3 color = vec3(u_mouse.x / u_resolution.x, u_mouse.y / u_resolution.y, 0.0);
gl_FragColor = vec4(color, 1.0);
}
code:vertex-shader.glsl
void main() {
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}