"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "data/shaders/ramp.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.

ramp.fs  (pymol-v2.1.0.tar.bz2):ramp.fs  (pymol-open-source-2.2.0)
#ifdef PURE_OPENGL_ES_2
precision lowp float;
#endif
varying vec4 COLOR ; varying vec4 COLOR ;
varying vec3 NORMAL ; varying vec3 NORMAL ;
#include ANAGLYPH_HEADER
void main() void main()
{ {
float NdotV = dot(NORMAL, vec3(0.,0.,1.)); float NdotV = dot(NORMAL, vec3(0.,0.,1.));
vec4 fColor = vec4(NdotV * COLOR.xyz, COLOR.a); gl_FragColor = vec4(NdotV * COLOR.xyz, COLOR.a);
// vec4 fColor = NdotV * COLOR; // slightly transparent based on normal
// vec4 fColor = vec4(NdotV * COLOR.rgb, (.5 + (.5 * NdotV)) * COLOR.a); // a l
ittle less transparent
#include ANAGLYPH_BODY #ifdef ANAGLYPH
gl_FragColor.rgb = vec3((gl_FragColor.r + gl_FragColor.b + gl_FragColor.g) / 3
.);
#endif
} }
 End of changes. 4 change blocks. 
8 lines changed or deleted 8 lines changed or added

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