move texture to GeometryEngine

This commit is contained in:
Anakin
2016-12-29 13:37:15 +01:00
parent faea3b0737
commit 0499982150
6 changed files with 99 additions and 203 deletions

View File

@@ -8,11 +8,8 @@ uniform sampler2D texture;
varying vec2 v_texcoord;
//! [0]
void main()
{
// Set fragment color from texture
gl_FragColor = texture2D(texture, v_texcoord);
}
//! [0]

View File

@@ -11,7 +11,6 @@ attribute vec2 a_texcoord;
varying vec2 v_texcoord;
//! [0]
void main()
{
// Calculate vertex position in screen space
@@ -21,4 +20,3 @@ void main()
// Value will be automatically interpolated to fragments inside polygon faces
v_texcoord = a_texcoord;
}
//! [0]