Create a new WireframeRenderBehavior that renders lines.
The vertex data (3 floats for position).
The index data (line indices).
The RGBA color (4 floats: r, g, b, a).
The vertex shader in WGSL (source code in string).
The fragment shader in WGSL (source code in string).
Protected_bindProtected_indexProtected_indexProtected_mvpProtected_pipelineProtected_renderProtected_vertexProtectedasyncProtectedCalled when the rendering is ready (device is available).
Detach this behavior from the GameObject it is attached to.
The GameObject to detach this behavior from.
ProtectedobserveProtectedObserve a LogicBehavior and call the observer function when the data changes.
ProtectedonProtectedonRender the object to the screen. Pipeline and MVP uniform are set by RenderEngine.
The render pass to render to
Like onEnable, but should only be for internal use, so some non-abstact direct behaviors could expose attachedOn to the user.
The GameObject this behavior is attached to.
ProtectedtickProtectedCalled every frame. Override this method to add custom behavior.
The time in seconds since the last frame.
A RenderBehavior that renders a wireframe using line primitives.