mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
7b04599a3b
- Implements mesh generation for cylinders and lines. - Implements an Id-allocator so that clients can mutate positions efficiently. - Is split into pipeline and scene modules. - Contains simple shaders that just pass through a position and color.
21 lines
331 B
GLSL
21 lines
331 B
GLSL
#version 420 core
|
|
|
|
#include <globals.glsl>
|
|
|
|
layout (location = 0)
|
|
in vec3 v_pos;
|
|
|
|
layout (std140, set = 1, binding = 0)
|
|
uniform u_locals {
|
|
vec4 w_pos;
|
|
vec4 w_color;
|
|
};
|
|
|
|
layout (location = 0)
|
|
out vec4 f_color;
|
|
|
|
void main() {
|
|
f_color = w_color;
|
|
gl_Position = all_mat * vec4((v_pos + w_pos.xyz) - focus_off.xyz, 1);
|
|
}
|