Remove the u_forceAlpha
It's unused nowadays.
This commit is contained in:
parent
769c746a06
commit
95656c3936
1 changed files with 0 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
uniform sampler2D sampler;
|
uniform sampler2D sampler;
|
||||||
uniform vec4 modulation;
|
uniform vec4 modulation;
|
||||||
uniform float saturation;
|
uniform float saturation;
|
||||||
uniform int u_forceAlpha;
|
|
||||||
|
|
||||||
varying vec2 varyingTexCoords;
|
varying vec2 varyingTexCoords;
|
||||||
|
|
||||||
|
@ -9,10 +8,6 @@ void main()
|
||||||
{
|
{
|
||||||
vec4 tex = texture2D(sampler, varyingTexCoords);
|
vec4 tex = texture2D(sampler, varyingTexCoords);
|
||||||
|
|
||||||
if (u_forceAlpha > 0) {
|
|
||||||
tex.a = 1.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (saturation != 1.0) {
|
if (saturation != 1.0) {
|
||||||
vec3 desaturated = tex.rgb * vec3( 0.30, 0.59, 0.11 );
|
vec3 desaturated = tex.rgb * vec3( 0.30, 0.59, 0.11 );
|
||||||
desaturated = vec3( dot( desaturated, tex.rgb ));
|
desaturated = vec3( dot( desaturated, tex.rgb ));
|
||||||
|
|
Loading…
Reference in a new issue