diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-09-26 18:04:23 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-09-26 18:04:23 -0400 |
commit | 685bc525dec7b5582aee24ca97f6e2d49a25807a (patch) | |
tree | 696f0d15d914e9d817a8905d55487e904e984367 /mainf.glsl | |
parent | 4502fee2542cf3a2523d6bb615faa5009cfd00aa (diff) |
placing objects
Diffstat (limited to 'mainf.glsl')
-rw-r--r-- | mainf.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -uniform vec3 u_color; +uniform vec4 u_color; uniform vec3 u_directional_light1; // (direction to light) uniform vec3 u_directional_light1_color; uniform vec3 u_directional_light2; @@ -18,5 +18,5 @@ void main() { } else { L = vec3(1.0, 1.0, 1.0); } - gl_FragColor = vec4(L * u_color, 1.0); + gl_FragColor = vec4(L * u_color.xyz, u_color.w); } |