Subdivide /


Calculates a single level of subdivision of triangles by inserting a single vertex in the center of each triangle. Interpolates all attributes and normalizes 3D NORMAL, TANGENT and BITANGENT attributes.

Public Member Functions

  • Subdivide ()
  • size_t
    getNumVertices (const Modifier::Params &upstreamParams) const override
  • size_t
    getNumIndices (const Modifier::Params &upstreamParams) const override
  • clone () const override
  • void
    process (SourceModsContext *ctx, const AttribSet &requestedAttribs) const override
  • getPrimitive (const Modifier::Params &upstreamParams) const
  • uint8_t
    getAttribDims (Attrib attr, uint8_t upstreamDims) const
  • getAvailableAttribs (const Modifier::Params &upstreamParams) const