First edit for framebuffers but it's slapped together and doesn't work yet.
This commit is contained in:
parent
c32e7bd00d
commit
ea80851450
8 changed files with 113 additions and 11 deletions
11
21-framebuffers/shaders/21-screen.frag.glsl
Normal file
11
21-framebuffers/shaders/21-screen.frag.glsl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
|
||||
in vec2 TexCoords;
|
||||
|
||||
uniform sampler2D screenTexture;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = texture(screenTexture, TexCoords);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue