"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "data/shaders/screen.fs" between
pymol-v2.1.0.tar.bz2 and pymol-open-source-2.2.0.tar.gz

About: PyMOL is a Python-enhanced molecular graphics tool. It excels at 3D visualization of proteins, small molecules, density, surfaces, and trajectories. It also includes molecular editing, ray tracing, and movies. Open Source version.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)