-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathholopoolinglib_demo.txt
More file actions
44 lines (33 loc) · 910 Bytes
/
holopoolinglib_demo.txt
File metadata and controls
44 lines (33 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@name holopooling stress tester
@persist POWER
#include "holopoolinglib"
if( first() ){
holopooling_register("points",
function(ID:number){
holoModel(ID,"icosphere")
holoColor(ID,vec(255,40,10))
holoScale(ID,vec(0.5))
holoMaterial(ID,"pac/default")
},
function(ID:number){
holoAlpha(ID,255)
},
function(ID:number){
holoAlpha(ID,0)
}
)
}
event tick(){
local XMax = round( sin( curtime()*200 ) * 2 + 2 )
local YMax = round( cos( curtime()*100 ) * 2 + 2 )
#print(XMax, YMax)
local Origin = entity():pos()
holopooling_start("points")
for(X=-XMax, XMax){
for(Y=-YMax, YMax){
local H = holopooling_get("points")
holoPos(H,Origin + vec(X*15,Y*15,10))
}
}
holopooling_end("points")
}