From ae1fe9121b341c7852e54aa586f23edaf21b664c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 11 Jul 2019 15:34:30 +0300 Subject: [PATCH] Translate cube map sampling function for old GLSL versions --- source/programcompiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/programcompiler.cpp b/source/programcompiler.cpp index 223392ff..00d217a0 100644 --- a/source/programcompiler.cpp +++ b/source/programcompiler.cpp @@ -1948,6 +1948,8 @@ void ProgramCompiler::LegacyConverter::visit(FunctionCall &call) call.name = "texture2D"; else if(type=="sampler3D") call.name = "texture3D"; + else if(type=="samplerCube") + call.name = "textureCube"; else if(type=="sampler1DShadow") call.name = "shadow1D"; else if(type=="sampler2DShadow") -- 2.43.0