From b43c4058c9a968aa4c0625711ce27ad0187ddce2 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 24 Oct 2019 08:04:43 -0400 Subject: render: Restructure 3D modules and add basic support for OBJ models. --- data/shaders/pbr/pbr-frag.glsl | 10 ---------- data/shaders/pbr/pbr-vert.glsl | 11 ----------- 2 files changed, 21 deletions(-) delete mode 100644 data/shaders/pbr/pbr-frag.glsl delete mode 100644 data/shaders/pbr/pbr-vert.glsl (limited to 'data') diff --git a/data/shaders/pbr/pbr-frag.glsl b/data/shaders/pbr/pbr-frag.glsl deleted file mode 100644 index 1552880..0000000 --- a/data/shaders/pbr/pbr-frag.glsl +++ /dev/null @@ -1,10 +0,0 @@ -#version 130 - -in vec2 frag_tex; -uniform vec3 base_color_factor; -uniform sampler2D base_color_texture; - -void main (void) { - gl_FragColor = texture2D(base_color_texture, frag_tex) * - vec4(base_color_factor, 1.0); -} diff --git a/data/shaders/pbr/pbr-vert.glsl b/data/shaders/pbr/pbr-vert.glsl deleted file mode 100644 index b6fefef..0000000 --- a/data/shaders/pbr/pbr-vert.glsl +++ /dev/null @@ -1,11 +0,0 @@ -#version 130 - -in vec3 position; -in vec2 texcoord_0; -out vec2 frag_tex; -uniform mat4 mvp; - -void main(void) { - frag_tex = texcoord_0; - gl_Position = mvp * vec4(position.xyz, 1.0); -} -- cgit v1.2.3