1
0
mirror of synced 2024-12-15 09:11:15 +01:00
ImHex/plugins/visualizers/romfs/shaders/default/lineVertex.glsl

16 lines
339 B
Plaintext
Raw Normal View History

#version 330 core
layout (location = 0) in vec3 in_Position;
layout (location = 1) in vec4 in_Color;
uniform mat4 modelMatrix;
uniform mat4 viewMatrix;
uniform mat4 projectionMatrix;
out vec4 fragColor;
void main() {
gl_Position = projectionMatrix * viewMatrix * modelMatrix * vec4(in_Position, 1.0);
fragColor = in_Color;
}