Uniforms and compiling shaders with a script

This commit is contained in:
nothke
2024-06-11 20:43:41 +02:00
parent a8dd27f3a4
commit e2a9053866
4 changed files with 628 additions and 2 deletions

View File

@@ -11,11 +11,15 @@ void main() {
@end
@fs fs
uniform fs_params {
vec3 offset;
};
in vec4 color;
out vec4 frag_color;
void main() {
frag_color = color;
frag_color = color * offset.r;
}
@end