Final day of opengl. Animations mostly work but there's either a problem with the model or the way it's loaded from assimp.
This commit is contained in:
parent
a629e16fe2
commit
3363921b6b
167 changed files with 17566 additions and 2 deletions
13
53-final-cleanup/shaders/30-screen-bw.frag.glsl
Normal file
13
53-final-cleanup/shaders/30-screen-bw.frag.glsl
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
|
||||
in vec2 TexCoords;
|
||||
|
||||
uniform sampler2D screenTexture;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec3 col = texture(screenTexture, TexCoords).rgb;
|
||||
float grayscale = 0.2126 * col.r + 0.7152 * col.g + 0.0722 * col.b;
|
||||
FragColor = vec4(vec3(grayscale), 1.0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue