Triangle shaders and pipeline
This commit is contained in:
22
src/shaders/triangle.glsl
Normal file
22
src/shaders/triangle.glsl
Normal file
@@ -0,0 +1,22 @@
|
||||
@vs vs
|
||||
in vec4 position;
|
||||
in vec4 color0;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
void main() {
|
||||
gl_Position = position;
|
||||
color = color0;
|
||||
}
|
||||
@end
|
||||
|
||||
@fs fs
|
||||
in vec4 color;
|
||||
out vec4 frag_color;
|
||||
|
||||
void main() {
|
||||
frag_color = color;
|
||||
}
|
||||
@end
|
||||
|
||||
@program triangle vs fs
|
Reference in New Issue
Block a user