ramp.vs (pymol-v2.1.0.tar.bz2) | : | ramp.vs (pymol-open-source-2.2.0) | ||
---|---|---|---|---|
#include webgl_header.vs | ||||
attribute vec4 a_Vertex; | attribute vec4 a_Vertex; | |||
attribute vec4 a_Color; | attribute vec4 a_Color; | |||
attribute vec3 a_Normal; | attribute vec3 a_Normal; | |||
varying vec4 COLOR ; | varying vec4 COLOR ; | |||
varying vec3 NORMAL ; | varying vec3 NORMAL ; | |||
uniform vec2 t2PixelSize; | ||||
uniform vec3 offsetPt; | uniform vec3 offsetPt; | |||
void main() | void main() | |||
{ | { | |||
COLOR = a_Color; | COLOR = a_Color; | |||
NORMAL = a_Normal; | NORMAL = a_Normal; | |||
vec4 vertex = a_Vertex + vec4(offsetPt,0.); | vec4 vertex = a_Vertex + vec4(offsetPt,0.); | |||
gl_Position = gl_ModelViewProjectionMatrix * vertex; | gl_Position = g_ProjectionMatrix * vertex; | |||
} | } | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |