mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 22:46:19 +01:00
18 lines
452 B
Text
18 lines
452 B
Text
|
function __3dGizmoAxis(_size = .5, color = c_white, alpha = 1) : __3dGizmo() constructor {
|
||
|
vertex = [
|
||
|
[
|
||
|
new __vertex( -_size, 0, 0, color, alpha ),
|
||
|
new __vertex( _size, 0, 0, color, alpha ),
|
||
|
],
|
||
|
[
|
||
|
new __vertex( 0, -_size, 0, color, alpha ),
|
||
|
new __vertex( 0, _size, 0, color, alpha ),
|
||
|
],
|
||
|
[
|
||
|
new __vertex( 0, 0, -_size, color, alpha ),
|
||
|
new __vertex( 0, 0, _size, color, alpha ),
|
||
|
],
|
||
|
];
|
||
|
object_counts = 3;
|
||
|
VB = build();
|
||
|
}
|