| 123456789101112131415161718192021222324252627 |
- // Copyright (C) 2009-2017, Panagiotis Christopoulos Charitos and contributors.
- // All rights reserved.
- // Code licensed under the BSD License.
- // http://www.anki3d.org/LICENSE
- // LF occlusion vert shader
- #include "shaders/Common.glsl"
- layout(ANKI_UBO_BINDING(0, 0), std140, row_major) uniform _block
- {
- mat4 u_mvp;
- };
- layout(location = 0) in vec3 in_position;
- out gl_PerVertex
- {
- vec4 gl_Position;
- float gl_PointSize;
- };
- void main()
- {
- ANKI_WRITE_POSITION(u_mvp * vec4(in_position, 1.0));
- gl_PointSize = 16.0;
- }
|