shader.draw.drawTexture.frag Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libgdx-graph Show documentation
Show all versions of libgdx-graph Show documentation
libGDX-graph runtime library for pipeline rendering
The newest version!
#ifdef GL_ES
precision mediump float;
#endif
uniform sampler2D u_sourceTexture;
uniform vec2 u_sourcePosition;
uniform vec2 u_sourceSize;
varying vec2 v_position;
void main() {
vec2 sourcePosition = u_sourcePosition + v_position * u_sourceSize;
vec4 color = texture2D(u_sourceTexture, sourcePosition);
gl_FragColor = color;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy