Geometry Renderer

    The effect of the geometry renderer is shown in the following figure.

    The features of Geometry Renderer is as follows:

    Where.

    • solid: whether to support solid mode, if not, then display wireframe mode
    • depth test: whether to support depth test, if support then the blocked part of the translucent display, not blocked part of the opaque display, if not support then all opaque display
    • transform: whether support transform, if support, developer can pass in a transform matrix, the transform matrix will act on the geometry of the vertices, convenient to display the geometry of any coordinate space
    • Typescript: .

    Example

    Since the vertex cache is cleared after rendering these geometries per frame, it is necessary to add geometries to the geometry renderer object (located in the camera) per frame in functions like update.

    To use this feature you need to enable Geometry Renderer in Project Settings -> Feature Cropping.

    The code example is as follows:

    The result is as follows: