From 7889392ad37213dc7419fb2423052b342e38de5b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 20 Feb 2021 13:51:54 +0000 Subject: dos2unix shader sources --- gfx/gl/shaders/basicShader.fs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'gfx/gl/shaders/basicShader.fs') diff --git a/gfx/gl/shaders/basicShader.fs b/gfx/gl/shaders/basicShader.fs index fe9a6b3..c20035d 100644 --- a/gfx/gl/shaders/basicShader.fs +++ b/gfx/gl/shaders/basicShader.fs @@ -1,15 +1,15 @@ -#version 130 - -in vec2 texCoord0; -in vec3 normal0; - -uniform sampler2D sampler; -uniform vec3 lightDirection; -uniform vec3 lightColor; -uniform vec3 ambientColor; - -void main() -{ - gl_FragColor = texture(sampler, texCoord0); - gl_FragColor.rgb *= clamp(ambientColor + (dot(-lightDirection, normal0) * lightColor), 0.0, 1.0); -} +#version 130 + +in vec2 texCoord0; +in vec3 normal0; + +uniform sampler2D sampler; +uniform vec3 lightDirection; +uniform vec3 lightColor; +uniform vec3 ambientColor; + +void main() +{ + gl_FragColor = texture(sampler, texCoord0); + gl_FragColor.rgb *= clamp(ambientColor + (dot(-lightDirection, normal0) * lightColor), 0.0, 1.0); +} -- cgit v1.2.3