Signed-off-by: hmz007 <hmz007@gmail.com> Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
15 lines
262 B
GLSL
15 lines
262 B
GLSL
#version 310 es
|
|
|
|
layout(location = 0) in mediump float ps;
|
|
|
|
invariant gl_Position;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = vec4(ps);
|
|
gl_Position *= float(4 - gl_VertexIndex);
|
|
|
|
gl_PointSize = ps;
|
|
gl_PointSize *= float(5 - gl_InstanceIndex);
|
|
}
|