From 0bf4ad9e4a9e1c97e92aa23a365405dfef89bd7c Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 17 Jan 2021 19:36:30 +0000 Subject: Big reshuffle Fixes code quality warnings now picked up. --- res/basicShader.fs | 13 ------------- res/basicShader.vs | 18 ------------------ 2 files changed, 31 deletions(-) delete mode 100644 res/basicShader.fs delete mode 100644 res/basicShader.vs (limited to 'res') diff --git a/res/basicShader.fs b/res/basicShader.fs deleted file mode 100644 index 3aa974f..0000000 --- a/res/basicShader.fs +++ /dev/null @@ -1,13 +0,0 @@ -#version 120 - -varying vec2 texCoord0; -varying vec3 normal0; - -uniform sampler2D sampler; -uniform vec3 lightDirection; - -void main() -{ - gl_FragColor = texture2D(sampler, texCoord0) * - clamp(dot(-lightDirection, normal0), 0.0, 1.0); -} diff --git a/res/basicShader.vs b/res/basicShader.vs deleted file mode 100644 index e673548..0000000 --- a/res/basicShader.vs +++ /dev/null @@ -1,18 +0,0 @@ -#version 120 - -attribute vec3 position; -attribute vec2 texCoord; -attribute vec3 normal; - -varying vec2 texCoord0; -varying vec3 normal0; - -uniform mat4 MVP; -uniform mat4 Normal; - -void main() -{ - gl_Position = MVP * vec4(position, 1.0); - texCoord0 = texCoord; - normal0 = (Normal * vec4(normal, 0.0)).xyz; -} -- cgit v1.2.3