17 lines
377 B
GLSL
17 lines
377 B
GLSL
attribute vec2 in_Position;
|
|
attribute vec2 in_TexCoord0;
|
|
|
|
uniform float pointWidth;
|
|
uniform float pointHeight;
|
|
uniform vec3 center;
|
|
|
|
varying vec2 texCoord;
|
|
|
|
void main(void)
|
|
{
|
|
texCoord = in_TexCoord0.st;
|
|
set_vp(vec4(center, 1.0));
|
|
vec2 transformed = vec2(in_Position.x * pointWidth, in_Position.y * pointHeight);
|
|
gl_Position.xy += transformed * gl_Position.w;
|
|
}
|