Files
PlantAI-dev/tools/pymol-open-source/data/shaders/ramp.vs
T
2026-08-03 18:42:47 +08:00

19 lines
316 B
GLSL

#include webgl_header.vs
attribute vec4 a_Vertex;
attribute vec4 a_Color;
attribute vec3 a_Normal;
varying vec4 COLOR ;
varying vec3 NORMAL ;
uniform vec3 offsetPt;
void main()
{
COLOR = a_Color;
NORMAL = a_Normal;
vec4 vertex = a_Vertex + vec4(offsetPt,0.);
gl_Position = g_ProjectionMatrix * vertex;
}