mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 03:39:57 +02:00
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:
@@ -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);
|
||||
}
|
@@ -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
|
@@ -1,5 +0,0 @@
|
||||
void main(void)
|
||||
{
|
||||
gl_Position = ftransform();;
|
||||
gl_FrontColor = gl_Color;
|
||||
}
|
Reference in New Issue
Block a user