#Global constants in Burst?
1 messages · Page 1 of 1 (latest)
new float3(0,1,0) has a function already math.up();. Global constants won't really give any performance boost. But if you need your own, look at how math.up() is implemented :3
1 messages · Page 1 of 1 (latest)
What is the best way to define global constants in burst? e.g. Constants.UpVec. I'm assuming sprinkling new float3(0,1,0); throughout my code isn't optimal.
new float3(0,1,0) has a function already math.up();. Global constants won't really give any performance boost. But if you need your own, look at how math.up() is implemented :3