From 145c152012d6b2c7dafa00d611d349834e6f7ea7 Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Sun, 28 May 2017 23:00:17 -0700 Subject: [PATCH] Fix GLSL reflection shader compile errors. --- hecl/lib/Backend/GLSL.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hecl/lib/Backend/GLSL.cpp b/hecl/lib/Backend/GLSL.cpp index fe5af6b0f..dd66c50ca 100644 --- a/hecl/lib/Backend/GLSL.cpp +++ b/hecl/lib/Backend/GLSL.cpp @@ -137,12 +137,12 @@ std::string GLSL::GenerateReflectionExpr(ReflectionType type) const { case ReflectionType::None: default: - return "vec3(0.0, 0.0, 0.0);\n"; + return "vec3(0.0, 0.0, 0.0)"; case ReflectionType::Simple: - return "texture(reflectionTex, vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha;\n"; + return "texture(reflectionTex, vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha"; case ReflectionType::Indirect: return "texture(reflectionTex, (texture(reflectionIndTex, vtf.reflectTcgs[0]).rg - " - "vec2(0.5, 0.5)) * vec2(0.5, 0.5) + vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha;\n"; + "vec2(0.5, 0.5)) * vec2(0.5, 0.5) + vtf.reflectTcgs[1]).rgb * vtf.reflectAlpha"; } }