procedural-3d-engine/data/shaders/computeparticles/particle.vert
Voultapher 5d7014b221 Visual Update for computeparticles
Instead of using a small amount of large textured particles, use a large
amount of small monochrome particles.
Which uses a new vulkanexamplebase functionality of creating and
updating a only device visible buffer via a temporary staging buffer.
2016-04-21 11:21:48 +02:00

15 lines
No EOL
305 B
GLSL

#version 450
#extension GL_ARB_separate_shader_objects : enable
#extension GL_ARB_shading_language_420pack : enable
layout (location = 0) in vec4 inPos;
layout (location = 0) out vec4 outColor;
void main ()
{
gl_PointSize = 1.0;
outColor = vec4(0.035);
gl_Position = vec4(inPos.xy, 1.0, 1.0);
}