setUniform4f in Shader

This commit is contained in:
Antoine
2021-05-14 15:34:08 +02:00
parent e4c1c80e4a
commit 049e735e1a
6 changed files with 59 additions and 2 deletions

View File

@ -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);
}

View File

@ -1,4 +1,7 @@
#version 330 core
uniform float time;
layout (location = 0) in vec3 aPos;
void main()