screen.fs (pymol-v2.1.0.tar.bz2) | : | screen.fs (pymol-open-source-2.2.0) | ||
---|---|---|---|---|
#ifdef PURE_OPENGL_ES_2 | ||||
precision highp float; | ||||
#endif | ||||
/* ios recent */ | /* ios recent */ | |||
uniform sampler2D textureMap; | uniform sampler2D textureMap; | |||
varying vec4 backgroundColor; | varying vec4 backgroundColor; | |||
varying vec2 textureLookup ; | varying vec2 textureLookup ; | |||
#include ANAGLYPH_HEADER | ||||
void main() | void main() | |||
{ | { | |||
vec4 fColor = texture2D(textureMap, textureLookup); | vec4 fColor = texture2D(textureMap, textureLookup); | |||
#ifdef PYMOL_IOS | ||||
if (isLabel > .5 && fColor.a < .1) | ||||
discard; | ||||
#endif | ||||
vec4 bColor = backgroundColor * (1.-fColor.a); | vec4 bColor = backgroundColor * (1.-fColor.a); | |||
fColor = vec4(bColor.rgb + fColor.rgb * fColor.a, bColor.a + fColor.a ); | gl_FragColor = vec4(bColor.rgb + fColor.rgb * fColor.a, bColor.a + fColor.a ); | |||
#include ANAGLYPH_BODY | #ifdef ANAGLYPH | |||
gl_FragColor.rgb = vec3((gl_FragColor.r + gl_FragColor.b + gl_FragColor.g) / 3 | ||||
.); | ||||
#endif | ||||
} | } | |||
End of changes. 5 change blocks. | ||||
8 lines changed or deleted | 9 lines changed or added |