API

Interface MeshDebugOptions

Options for MeshDebugPluginMaterial visualizations

interface MeshDebugOptions {
    mode?: MeshDebugMode;
    multiply?: boolean;
    shadedDiffuseColor?: any;
    shadedSpecularColor?: any;
    shadedSpecularPower?: number;
    uvPrimaryColor?: any;
    uvScale?: number;
    uvSecondaryColor?: any;
    vertexColor?: any;
    vertexRadius?: number;
    wireframeThickness?: number;
    wireframeTrianglesColor?: any;
    wireframeVerticesColor?: any;
}
Index

The mesh debug visualization. Defaults to NONE.

multiply?: boolean

Whether the mesh debug visualization should multiply with color underneath. Defaults to true.

shadedDiffuseColor?: any

Diffuse color used to shade the mesh. Defaults to (1.0, 1.0, 1.0).

shadedSpecularColor?: any

Specular color used to shade the mesh. Defaults to (0.8, 0.8, 0.8).

shadedSpecularPower?: number

Specular power used to shade the mesh. Defaults to 10.

uvPrimaryColor?: any

1st color of checkerboard grid in UV1 or UV2 modes. Defaults to (1.0, 1.0, 1.0).

uvScale?: number

Size of tiles in UV1 or UV2 modes. Defaults to 20.

uvSecondaryColor?: any

2nd color of checkerboard grid in UV1 or UV2 modes. Defaults to (0.5, 0.5, 0.5).

vertexColor?: any

Color of vertices in TRIANGLES_VERTICES and VERTICES mode. Defaults to (0.0, 0.0, 0.0).

vertexRadius?: number

Radius of dots drawn over vertices in TRIANGLE_VERTICES and VERTICES mode. Defaults to 1.2.

wireframeThickness?: number

Width of edge lines in TRIANGLES and TRIANGLE_VERTICES modes. Defaults to 0.7.

wireframeTrianglesColor?: any

Color of edge lines in TRIANGLES mode. Defaults to (0.0, 0.0, 0.0).

wireframeVerticesColor?: any

Color of edge lines in TRIANGLES_VERTICES modes. Defaults to (0.8, 0.8, 0.8).