From 3b791f79bf53e481d053ea4516eedce8be3423bf Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 1 Nov 2022 19:12:04 +0000 Subject: Switch to a deferred lighting based render pipeline Tidy-up required. --- gfx/gl/shaders/landmassShader.vs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'gfx/gl/shaders/landmassShader.vs') diff --git a/gfx/gl/shaders/landmassShader.vs b/gfx/gl/shaders/landmassShader.vs index bc9a947..6bf39b0 100644 --- a/gfx/gl/shaders/landmassShader.vs +++ b/gfx/gl/shaders/landmassShader.vs @@ -4,16 +4,18 @@ in vec3 position; in vec2 texCoord; in vec3 normal; -out vec2 texCoord0; -out vec3 normal0; -out float height; +out vec3 FragPos; +out vec2 TexCoords; +out vec3 Normal; uniform mat4 viewProjection; -void main() +void +main() { + FragPos = position; + TexCoords = texCoord; + Normal = normal; + gl_Position = viewProjection * vec4(position, 1.0); - texCoord0 = texCoord; - normal0 = normal; - height = position.z; } -- cgit v1.2.3