 	
 	int count = 4;
 	
-	if (sceneColor.a > 5.0f || lightswitch < 1.0f) {
+	if (resultColor.a > 5.0f || lightswitch < 1.0f) {
 		count = 0;
 	}
 	

uniform float l3s_g;
uniform float l3s_b;

struct lightSource
{
  vec4 position;


void main()
{
	
	vec4   resultColor = vec4(sceneColor);
	
    if (resultColor.a < 0.1f) {
    	discard;
    }
    
    MyFunction(resultColor);
    
	lights[0] = light0;
	lights[1] = light1;
