diff options
author | rgraef <romangraef@gmail.com> | 2021-04-22 14:37:17 +0200 |
---|---|---|
committer | rgraef <romangraef@gmail.com> | 2021-04-22 14:37:17 +0200 |
commit | bd6a6335ef9b3487ba526ddfe02b36c2f23af273 (patch) | |
tree | 54f6d147b6b6922c6f4df6a136530cda1da4007f /txtgameengine | |
parent | 7d56930630e75ddd26c28de4276bfe8482cbb075 (diff) | |
download | txtgameengine-bd6a6335ef9b3487ba526ddfe02b36c2f23af273.tar.gz txtgameengine-bd6a6335ef9b3487ba526ddfe02b36c2f23af273.tar.bz2 txtgameengine-bd6a6335ef9b3487ba526ddfe02b36c2f23af273.zip |
package
Diffstat (limited to 'txtgameengine')
-rw-r--r-- | txtgameengine/base_shaders/fragment.glsl | 6 | ||||
-rw-r--r-- | txtgameengine/base_shaders/vertex.glsl | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/txtgameengine/base_shaders/fragment.glsl b/txtgameengine/base_shaders/fragment.glsl new file mode 100644 index 0000000..a9dfa6f --- /dev/null +++ b/txtgameengine/base_shaders/fragment.glsl @@ -0,0 +1,6 @@ +#version 330 core + +out vec4 fragColor; +void main() { + fragColor = vec4(0, 0, 1, 1); +}
\ No newline at end of file diff --git a/txtgameengine/base_shaders/vertex.glsl b/txtgameengine/base_shaders/vertex.glsl new file mode 100644 index 0000000..1e02417 --- /dev/null +++ b/txtgameengine/base_shaders/vertex.glsl @@ -0,0 +1,8 @@ +#version 330 core + +layout(location = 0) in vec3 vertexPosition_modelspace; + +void main() { + gl_Position.xyz = vertexPosition_modelspace; + gl_Position.w = 1.0; +} |