Catos Engine (Source) 0.0.1
Lightweight Game engine
Loading...
Searching...
No Matches
renderer.cpp File Reference
#include "renderer.h"
#include "glad/glad.h"

Variables

float quadVertices []
 
const char * screenVertexSource
 
const char * screenFragmentSource
 

Variable Documentation

◆ quadVertices

float quadVertices[]
Initial value:
= {
-1.0f, 1.0f, 0.0f, 1.0f,
-1.0f, -1.0f, 0.0f, 0.0f,
1.0f, -1.0f, 1.0f, 0.0f,
-1.0f, 1.0f, 0.0f, 1.0f,
1.0f, -1.0f, 1.0f, 0.0f,
1.0f, 1.0f, 1.0f, 1.0f
}

◆ screenFragmentSource

const char* screenFragmentSource
Initial value:
= "#version 420 core\n"
"uniform sampler2D outTexture;\n"
"in vec2 TexCoords;"
"out vec4 outColor;\n"
"void main() {\n"
" vec3 col = texture(outTexture, TexCoords).rgb;\n"
" outColor = vec4(col, 1.0);\n"
"}\n"

◆ screenVertexSource

const char* screenVertexSource
Initial value:
= "#version 420 core\n"
"layout (location = 0) in vec3 aPos;\n"
"layout (location = 1) in vec2 aTexCoords;\n"
"out vec2 TexCoords; \n"
"void main()\n"
"{\n"
" TexCoords = aTexCoords;\n"
" gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);\n"
"}\0"