setUniform4f in Shader
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
#version 330 core
|
||||
|
||||
uniform float time;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
|
||||
FragColor = vec4(sin(time), sin(time/2), sin(time/4), 1.0f);
|
||||
}
|
@ -1,4 +1,7 @@
|
||||
#version 330 core
|
||||
|
||||
uniform float time;
|
||||
|
||||
layout (location = 0) in vec3 aPos;
|
||||
|
||||
void main()
|
||||
|
Reference in New Issue
Block a user