Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F11221366
View_TimeAnimation.vert
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
421 B
Subscribers
None
View_TimeAnimation.vert
View Options
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
Details
Attached
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)
Attached To
rFROGSVN frogsvn
Event Timeline
Log In to Comment