Moved over from Win32 resources to purely nfpack; Included primitives and default shader in base.nfpack; Camera fixes

This commit is contained in:
grayson committed 2021-09-01 13:08:21 -05:00
1 parent 48821afd76
commit c0f7634b5f
32 files changed
+5062 -224

No files matched your search

@@ -0,0 +1,11 @@
#version 330 core
out vec4 color;
uniform sampler2D tex;
in vec2 texCoord;
void main() {
color = texture(tex, texCoord);
}
@@ -0,0 +1,15 @@
#version 330 core
layout(location = 0) in vec3 pos;
layout(location = 1) in vec2 texCoords;
uniform mat4 model;
uniform mat4 view;
uniform mat4 proj;
out vec2 texCoord;
void main() {
gl_Position = proj * view * model * vec4(pos, 1.0);
texCoord = texCoords;
}