diff --git a/src/renderer/webgl/shaders/Multi-frag.js b/src/renderer/webgl/shaders/Multi-frag.js index 4c55cad71..4724dc00a 100644 --- a/src/renderer/webgl/shaders/Multi-frag.js +++ b/src/renderer/webgl/shaders/Multi-frag.js @@ -26,6 +26,11 @@ module.exports = [ ' // Solid color + texture alpha', ' color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);', ' }', + ' else if (outTintEffect == 2.0)', + ' {', + ' // Solid color, no texture', + ' color = texel;', + ' }', '', ' gl_FragColor = color;', '}', diff --git a/src/renderer/webgl/shaders/Single-frag.js b/src/renderer/webgl/shaders/Single-frag.js index faa350fa2..f0faf13d1 100644 --- a/src/renderer/webgl/shaders/Single-frag.js +++ b/src/renderer/webgl/shaders/Single-frag.js @@ -22,6 +22,11 @@ module.exports = [ ' // Solid color + texture alpha', ' color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);', ' }', + ' else if (outTintEffect == 2.0)', + ' {', + ' // Solid color, no texture', + ' color = texel;', + ' }', '', ' gl_FragColor = color;', '}', diff --git a/src/renderer/webgl/shaders/src/Multi.frag b/src/renderer/webgl/shaders/src/Multi.frag index 2addcbfea..54ff0a318 100644 --- a/src/renderer/webgl/shaders/src/Multi.frag +++ b/src/renderer/webgl/shaders/src/Multi.frag @@ -25,6 +25,11 @@ void main() // Solid color + texture alpha color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a); } + else if (outTintEffect == 2.0) + { + // Solid color, no texture + color = texel; + } gl_FragColor = color; } diff --git a/src/renderer/webgl/shaders/src/Single.frag b/src/renderer/webgl/shaders/src/Single.frag index 7fb923597..681e70d50 100644 --- a/src/renderer/webgl/shaders/src/Single.frag +++ b/src/renderer/webgl/shaders/src/Single.frag @@ -21,6 +21,11 @@ void main() // Solid color + texture alpha color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a); } + else if (outTintEffect == 2.0) + { + // Solid color, no texture + color = texel; + } gl_FragColor = color; }