first code attempt
This commit is contained in:
0
build/shaders/CLAUDE.md
Normal file
0
build/shaders/CLAUDE.md
Normal file
6
build/shaders/ppi_bearing.frag
Normal file
6
build/shaders/ppi_bearing.frag
Normal file
@@ -0,0 +1,6 @@
|
||||
#version 330 core
|
||||
uniform vec3 uColor;
|
||||
out vec4 FragColor;
|
||||
void main() {
|
||||
FragColor = vec4(uColor, 1.0);
|
||||
}
|
||||
5
build/shaders/ppi_bearing.vert
Normal file
5
build/shaders/ppi_bearing.vert
Normal file
@@ -0,0 +1,5 @@
|
||||
#version 330 core
|
||||
layout(location = 0) in vec2 aPos;
|
||||
void main() {
|
||||
gl_Position = vec4(aPos, 0.0, 1.0);
|
||||
}
|
||||
6
build/shaders/scope_bounds.frag
Normal file
6
build/shaders/scope_bounds.frag
Normal file
@@ -0,0 +1,6 @@
|
||||
#version 330 core
|
||||
uniform vec3 uColor;
|
||||
out vec4 FragColor;
|
||||
void main() {
|
||||
FragColor = vec4(uColor, 1.0);
|
||||
}
|
||||
5
build/shaders/scope_bounds.vert
Normal file
5
build/shaders/scope_bounds.vert
Normal file
@@ -0,0 +1,5 @@
|
||||
#version 330 core
|
||||
layout(location = 0) in vec2 aPos;
|
||||
void main() {
|
||||
gl_Position = vec4(aPos, 0.0, 1.0);
|
||||
}
|
||||
9
build/shaders/text.frag
Normal file
9
build/shaders/text.frag
Normal file
@@ -0,0 +1,9 @@
|
||||
#version 330 core
|
||||
in vec2 vUV;
|
||||
uniform sampler2D uTexture;
|
||||
uniform vec3 uColor;
|
||||
out vec4 FragColor;
|
||||
void main() {
|
||||
float alpha = texture(uTexture, vUV).r;
|
||||
FragColor = vec4(uColor, alpha);
|
||||
}
|
||||
8
build/shaders/text.vert
Normal file
8
build/shaders/text.vert
Normal file
@@ -0,0 +1,8 @@
|
||||
#version 330 core
|
||||
layout(location = 0) in vec2 aPos;
|
||||
layout(location = 1) in vec2 aUV;
|
||||
out vec2 vUV;
|
||||
void main() {
|
||||
gl_Position = vec4(aPos, 0.0, 1.0);
|
||||
vUV = aUV;
|
||||
}
|
||||
Reference in New Issue
Block a user