Browse Source

iphone5 masks workaround

dmuratshin 9 years ago
parent
commit
2d002f5d36

File diff suppressed because it is too large
+ 0 - 1
oxygine/src/core/system_data.cpp


+ 2 - 2
oxygine/system_data/original/system/shader.glsl

@@ -104,9 +104,9 @@ lowp vec4 get_color()
 	lowp vec4 mask = texture2D(mask_texture, uv2);
 
 #ifdef MASK_R_CHANNEL
-	lowp float mask_alpha = mask.r;	
+	lowp float mask_alpha = mask.r + 0.001;	
 #else
-	lowp float mask_alpha = mask.a;
+	lowp float mask_alpha = mask.a + 0.001;
 #endif
 
 	base = base * mask_alpha;

Some files were not shown because too many files changed in this diff