mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Initial work on using framebuffer from GBuffer
This commit is contained in:
10
shaders/fragment/render_screen.glsl
Normal file
10
shaders/fragment/render_screen.glsl
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
|
||||
in vec2 outTexCoords;
|
||||
|
||||
uniform sampler2D screenTexture;
|
||||
|
||||
void main() {
|
||||
FragColor = texture(screenTexture, outTexCoords);
|
||||
}
|
||||
10
shaders/vertex/render_screen.glsl
Normal file
10
shaders/vertex/render_screen.glsl
Normal file
@@ -0,0 +1,10 @@
|
||||
#version 330 core
|
||||
layout (location = 0) in vec2 inPosition;
|
||||
layout (location = 1) in vec2 inTexCoords;
|
||||
|
||||
out vec2 outTexCoords;
|
||||
|
||||
void main() {
|
||||
gl_Position = vec4(inPosition.x, inPosition.y, inPosition.z, 1.0);
|
||||
outTexCoords = inTexCoords;
|
||||
}
|
||||
Reference in New Issue
Block a user