"Fossies" - the Fresh Open Source Software Archive  

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

bg.vs  (pymol-v2.1.0.tar.bz2):bg.vs  (pymol-open-source-2.2.0)
#ifdef PURE_OPENGL_ES_2
precision highp float;
#endif
attribute vec3 a_Vertex; attribute vec3 a_Vertex;
varying vec2 bgTextureLookup ; varying vec2 bgTextureLookup ;
uniform float isCentered; uniform bool isPicking;
uniform vec2 imageSize;
uniform vec2 screenCenter;
uniform vec2 pixelSize;
void main() void main()
{ {
vec2 imageVertex = a_Vertex.xy; gl_Position = vec4(a_Vertex.xy, .5, 1.);
imageVertex = pixelSize * floor(imageVertex / pixelSize);
gl_Position = vec4(imageVertex.x, imageVertex.y, .5, 1.);
bgTextureLookup = (1. + a_Vertex.xy) / 2.; bgTextureLookup = (1. + a_Vertex.xy) / 2.;
bgTextureLookup = pixelSize * floor(bgTextureLookup / pixelSize);
} }
 End of changes. 4 change blocks. 
8 lines changed or deleted 6 lines changed or added

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