vertex_engine/bin/layers/opengl_panel/shaders/vertes.shader

22 lines
348 B
Plaintext
Raw Permalink Normal View History

2024-05-15 09:09:36 +03:00
#version 330 core
layout (location = 0) in vec3 base_position;
uniform float scale;
uniform vec4 color;
uniform vec3 position;
uniform mat4 view;
uniform mat4 model;
uniform mat4 projection;
out vec4 v_color;
void main()
{
vec3 p = base_position + position * scale ;
2024-05-15 10:57:21 +03:00
gl_Position = projection * view * vec4(p, 1.0);
2024-05-15 09:09:36 +03:00
v_color = color;
}