From e01a42e21fa7a259441eb5fe94a87a499ba21eb5 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 28 Mar 2014 21:58:45 +0100 Subject: [PATCH] Fix shader compile --HG-- branch : opengl3 --- .../3d/driver/opengl3/driver_glsl_shader_generator.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/nel/src/3d/driver/opengl3/driver_glsl_shader_generator.cpp b/code/nel/src/3d/driver/opengl3/driver_glsl_shader_generator.cpp index 6e97a346c..0f4ab01ed 100644 --- a/code/nel/src/3d/driver/opengl3/driver_glsl_shader_generator.cpp +++ b/code/nel/src/3d/driver/opengl3/driver_glsl_shader_generator.cpp @@ -1452,12 +1452,12 @@ namespace NL3D if( material->getTexture( 3 ) != NULL ) diffuse = true; - ss << "smooth in texCoord0;" << std::endl; - ss << "smooth in texCoord1;" << std::endl; - ss << "smooth in texCoord2;" << std::endl; + ss << "smooth in vec4 texCoord0;" << std::endl; + ss << "smooth in vec4 texCoord1;" << std::endl; + ss << "smooth in vec4 texCoord2;" << std::endl; if( diffuse ) - ss << "smooth in texCoord3;" << std::endl; + ss << "smooth in vec4 texCoord3;" << std::endl; ss << "flat in vec4 bump0ScaleBias;" << std::endl; ss << "flat in vec4 bump1ScaleBias;" << std::endl; @@ -1498,7 +1498,7 @@ namespace NL3D if( diffuse ) ss << "fragColor = texel3;" << std::endl; else - ss << "fragColor = texel2" << std::endl; + ss << "fragColor = texel2;" << std::endl; addAlphaTest();