1
0
mirror of synced 2024-12-03 03:37:19 +01:00
ImHex/plugins/builtin/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;
}