17.09.2020
+ Generic Scene + Generic Camera + Generic Window + Contexts for drawing and updateing + very basic 2D-implermention
This commit is contained in:
parent
9889366317
commit
589d131246
25 changed files with 383 additions and 78 deletions
8
SMCode/SM.Base/Shader/Files/default.frag
Normal file
8
SMCode/SM.Base/Shader/Files/default.frag
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#version 330
|
||||
uniform vec4 Tint;
|
||||
|
||||
layout(location = 0) out vec4 color;
|
||||
|
||||
void main() {
|
||||
color = vec4(1,1,1,1) + Tint;
|
||||
}
|
||||
9
SMCode/SM.Base/Shader/Files/default.vert
Normal file
9
SMCode/SM.Base/Shader/Files/default.vert
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#version 330
|
||||
layout(location = 0) in vec3 aPos;
|
||||
|
||||
uniform mat4 MVP;
|
||||
uniform mat4 ModelMatrix;
|
||||
|
||||
void main() {
|
||||
gl_Position = MVP * ModelMatrix * vec4(aPos, 1);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue