From a3454aa2052aef431032b42554b9f16b0a80ffcb Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 26 Feb 2017 17:22:08 -0400 Subject: [PATCH] Use a simpler default video shader. --HG-- branch : minor --- src/modules/graphics/wrap_Graphics.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/graphics/wrap_Graphics.lua b/src/modules/graphics/wrap_Graphics.lua index 86bb0cabf..f426fbbfd 100644 --- a/src/modules/graphics/wrap_Graphics.lua +++ b/src/modules/graphics/wrap_Graphics.lua @@ -410,8 +410,8 @@ vec4 effect(vec4 vcolor, Image tex, vec2 texcoord, vec2 pixcoord) { return Texel(tex, texcoord) * vcolor; }]], videopixel = [[ -vec4 effect(vec4 vcolor, Image tex, vec2 texcoord, vec2 pixcoord) { - return VideoTexel(texcoord) * vcolor; +void effect() { + love_PixelColor = VideoTexel(VaryingTexCoord.xy) * VaryingColor; }]], arraypixel = [[ uniform ArrayImage MainTex; @@ -436,7 +436,7 @@ for lang, info in pairs(langs) do t[lang] = { vertex = createShaderStageCode("VERTEX", defaultcode.vertex, info.target, info.gles, false, gammacorrect), pixel = createShaderStageCode("PIXEL", defaultcode.pixel, info.target, info.gles, false, gammacorrect, false), - videopixel = createShaderStageCode("PIXEL", defaultcode.videopixel, info.target, info.gles, false, gammacorrect, false), + videopixel = createShaderStageCode("PIXEL", defaultcode.videopixel, info.target, info.gles, false, gammacorrect, true), arraypixel = createShaderStageCode("PIXEL", defaultcode.arraypixel, info.target, info.gles, false, gammacorrect, true), } end