mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 05:18:21 +00:00
Day7: ImGUI interaction+OpenGL 4.1+Bugs+ambient color control
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
#version 460
|
||||
#version 410
|
||||
|
||||
uniform sampler2D Texture;
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#version 460
|
||||
#version 410
|
||||
|
||||
uniform mat4 ProjMtx;
|
||||
|
||||
|
||||
@ -1,11 +1,14 @@
|
||||
#version 460
|
||||
#version 410
|
||||
|
||||
in vec3 outColor;
|
||||
|
||||
out vec4 fragColor;
|
||||
|
||||
uniform vec3 ambientLightColor = vec3(1, 0, 0);
|
||||
uniform float ambientStrength = 1;
|
||||
|
||||
void main()
|
||||
{
|
||||
fragColor = vec4(1,1,1, 1.0);
|
||||
// fragColor = vec4(outColor, 1.0);
|
||||
vec3 objColor = vec3(1, 1, 1);
|
||||
fragColor = vec4(objColor * ambientLightColor * ambientStrength, 1.0);
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
#version 460
|
||||
#version 410
|
||||
|
||||
in vec3 vertPos;
|
||||
in vec3 vertColor;
|
||||
|
||||
Reference in New Issue
Block a user