Modern 'GL now renders properly, camera works as expected, added fallback to immediate mode if shader fails to compile.

This commit is contained in:
2019-12-08 17:50:20 -06:00
parent e076ce8612
commit af19166af2
9 changed files with 68 additions and 67 deletions

View File

@@ -1,5 +1,6 @@
# version 330 core
in vec3 outPosition;
in vec3 outColor;
in vec4 outNormal;
in vec3 outUV;
@@ -11,5 +12,5 @@ vec4 lokiVar;
void main() {
lokiVar = vec4(outColor, 1.0) + outNormal + vec4(outUV, 1.0) + vec4(outTextureID, 1.0, 1.0, 1.0);
lokiVar = normalize(lokiVar);
gl_FragColor = vec4(lokiVar);
gl_FragColor = vec4(outColor, 1.0);
}