Pass particle pointer to graphics update function instead of index. Make PIPE use subcall to get graphics info. Cache for particle graphics properties. Stickman PSPEC_STICKMAN added and implemented

This commit is contained in:
Simon Robertshaw
2011-10-23 13:52:26 +01:00
parent 014c1fbad6
commit 1c7b9d9949
17 changed files with 424 additions and 253 deletions

View File

@@ -1,5 +0,0 @@
uniform sampler2D fireAlpha;
void main () {
vec4 texColor = texture2D(fireAlpha, gl_PointCoord);
gl_FragColor = vec4(gl_Color.rgb, texColor.a*gl_Color.a);
}

View File

@@ -1,18 +0,0 @@
tpt.register_step("do_step")
numberthing = 0
increment = 2
function do_step()
numberthing = numberthing + increment;
if numberthing >= 400 then
increment = -2
elseif numberthing < 4 then
increment = 2
end
tpt.drawtext(numberthing, 50, "Oh my god, this is amazing", 255, 255, 255, 255)
tpt.drawtext(mousex, mousey, "Oh my god, this is amazing", 255, 255, 255, 255)
tpt.reset_velocity(10, 10, 20, 20)
tpt.reset_gravity_field(10, 10, 20, 20)
tpt.set_pressure(10, 10, 20, 20)
tpt.set_gravity(75, 45, 1, 1, 8)
return false
end

View File

@@ -1,5 +0,0 @@
void main(void)
{
gl_Position = ftransform();;
gl_FrontColor = gl_Color;
}