@pixi/3d
    Preparing search index...

    Function solidMeshDescriptor

    • Advanced

      Shader for a MeshPass that draws meshes in one flat colour, such as a selection mask

      Skinning and morph targets apply; lighting and textures don't. Each colour and extrusion pair compiles its own shader, so pick them once per pass rather than animating them.

      Parameters

      Returns ShaderDescriptorOptions

      The shaderDescriptor for a pass's descriptor or a material's passes entry.

      new MeshPass({ name: 'mask', descriptor: { shaderDescriptor: solidMeshDescriptor({ color: 0xffffff }) } });