mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
buffer mesh working
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
#version 430
|
||||
|
||||
layout(std140, binding=0) uniform globals {
|
||||
mat4 proj;
|
||||
float time;
|
||||
};
|
||||
|
||||
layout(location=0) in vec4 pos;
|
||||
|
||||
out gl_PerVertex{
|
||||
vec4 gl_Position;
|
||||
};
|
||||
|
||||
void main() {
|
||||
gl_Position = proj * pos;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
#version 430
|
||||
|
||||
layout(std140, binding=0) uniform globals {
|
||||
mat4 proj;
|
||||
float time;
|
||||
};
|
||||
|
||||
out vec4 diffuse;
|
||||
|
||||
void main() {
|
||||
vec3 hue = vec3(time) + vec3(0, 2, 4) * 3.1415 / 6.0;
|
||||
vec3 rgb = cos(hue) * 0.3 + vec3(0.7);
|
||||
|
||||
diffuse = vec4(rgb, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user