mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Added 2nd conditional back
This commit is contained in:
parent
8c29a001e4
commit
468b1ba255
4 changed files with 20 additions and 0 deletions
|
@ -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;',
|
||||
'}',
|
||||
|
|
|
@ -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;',
|
||||
'}',
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue