Added 2nd conditional back

This commit is contained in:
Richard Davey 2020-10-05 13:43:54 +01:00
parent 8c29a001e4
commit 468b1ba255
4 changed files with 20 additions and 0 deletions

View file

@ -26,6 +26,11 @@ module.exports = [
' // Solid color + texture alpha', ' // Solid color + texture alpha',
' color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);', ' 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;', ' gl_FragColor = color;',
'}', '}',

View file

@ -22,6 +22,11 @@ module.exports = [
' // Solid color + texture alpha', ' // Solid color + texture alpha',
' color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);', ' 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;', ' gl_FragColor = color;',
'}', '}',

View file

@ -25,6 +25,11 @@ void main()
// Solid color + texture alpha // Solid color + texture alpha
color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a); 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; gl_FragColor = color;
} }

View file

@ -21,6 +21,11 @@ void main()
// Solid color + texture alpha // Solid color + texture alpha
color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a); 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; gl_FragColor = color;
} }