Interface MaterialGroup

All Known Implementing Classes:
BatchedMaterialGroup, CrumblingGroup, InstancedMaterialGroup

public interface MaterialGroup
  • Method Summary

    Modifier and Type
    Method
    Description
    <D extends InstanceData>
    Material<D>
    Get the material as defined by the given type.
  • Method Details

    • material

      <D extends InstanceData> Material<D> material(StructType<D> spec)
      Get the material as defined by the given type.
      Type Parameters:
      D - The type representing the per instance data.
      Parameters:
      spec - The material you want to create instances with.
      Returns:
      A material you can use to render models.