Basic WEBGL rendering of polygons

This commit is contained in:
Guillaume Beraudo
2015-04-02 13:51:39 +02:00
committed by GaborFarkas
parent 8bdbe7aae0
commit 2519cf36fc
3 changed files with 435 additions and 1 deletions
@@ -0,0 +1,22 @@
//! NAMESPACE=ol.render.webgl.polygonreplay.shader.Default
//! CLASS=ol.render.webgl.polygonreplay.shader.Default
//! COMMON
//! VERTEX
attribute vec2 a_position;
uniform mat4 u_projectionMatrix;
void main(void) {
gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);
}
//! FRAGMENT
void main(void) {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}