Pixel-Composer/scripts/d3d_gizmo_plane/d3d_gizmo_plane.gml

24 lines
695 B
Plaintext
Raw Normal View History

2023-11-09 07:59:03 +01:00
function __3dGizmoPlane(radius = 0.5, color = c_white, alpha = 1) : __3dGizmo() constructor {
object_counts = 2;
2023-11-09 07:59:03 +01:00
vertex = [
[
new __vertex( -radius, -radius, 0, color, alpha ),
new __vertex( -radius, radius, 0, color, alpha ),
new __vertex( -radius, radius, 0, color, alpha ),
new __vertex( radius, radius, 0, color, alpha ),
2023-11-09 07:59:03 +01:00
new __vertex( radius, radius, 0, color, alpha ),
new __vertex( radius, -radius, 0, color, alpha ),
new __vertex( radius, -radius, 0, color, alpha ),
new __vertex( -radius, -radius, 0, color, alpha ),
2023-11-09 07:59:03 +01:00
],
[
new __vertex( 0, 0, 0, color, alpha ),
new __vertex( 0, 0, 1, color, alpha ),
]
];
VB = build();
}