From 9ab59b76c0ece5e261c0152af3f830f48532e103 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 22 Feb 2020 08:55:48 +0100 Subject: Fix rendering of character --- shaders/fragment_no_texture.frag | 7 +++++++ shaders/vertex_no_texture.vert | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 shaders/fragment_no_texture.frag create mode 100644 shaders/vertex_no_texture.vert (limited to 'shaders') diff --git a/shaders/fragment_no_texture.frag b/shaders/fragment_no_texture.frag new file mode 100644 index 0000000..f6d7bf1 --- /dev/null +++ b/shaders/fragment_no_texture.frag @@ -0,0 +1,7 @@ +#version 330 core + +out vec4 out_color; + +void main() { + out_color = vec4(1.0, 1.0, 1.0, 1.0); +} \ No newline at end of file diff --git a/shaders/vertex_no_texture.vert b/shaders/vertex_no_texture.vert new file mode 100644 index 0000000..a44217b --- /dev/null +++ b/shaders/vertex_no_texture.vert @@ -0,0 +1,11 @@ +#version 330 core + +in vec3 position; + +uniform mat4 proj; +uniform mat4 view; +uniform mat4 model; + +void main() { + gl_Position = proj * view * model * vec4(position, 1.0); +} \ No newline at end of file -- cgit v1.2.3