move texture to GeometryEngine
This commit is contained in:
@@ -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]
|
||||
|
||||
|
@@ -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]
|
||||
|
Reference in New Issue
Block a user