Page MenuHomeHEPForge

View_TimeAnimation.vert
No OneTemporary

View_TimeAnimation.vert

uniform float Time;
void main(){
vec4 vtx = gl_Vertex;
float RTime = sqrt(vtx.x*vtx.x+vtx.y*vtx.y+vtx.z*vtx.z)/30; //Division by 30 to have time in ns.
// gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;
gl_Position = gl_ModelViewProjectionMatrix * vtx;
if(RTime<Time){
gl_FrontColor = gl_Color;
}else{
gl_FrontColor = vec4(gl_Color.xyz,0);
}
}

File Metadata

Mime Type
text/x-c
Expires
Wed, May 14, 10:20 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5111096
Default Alt Text
View_TimeAnimation.vert (421 B)

Event Timeline