Class point_cloud

Class Documentation

class legion::rendering::point_cloud

Struct that holds data for the mandatory for the pointcloud generation.

Public Functions

inline point_cloud(mesh_handle newMesh, transform newTrans, material_handle mat, image_handle albedoMap, image_handle heightMap, uint maxPoints = 100, float radius = 0.2f)

Takes in a mesh handle, transform and a material, optionally it takes in max points and radius.

  • newMesh: is used to sample the points for the point cloud.

  • newTrans: is the position of the object / point cloud.

  • mat: is the material used by the particle system that renders the points.

  • maxPoints: is used to calculate the samples for each triangle of the mesh,

  • radius: defines point scale.

point_cloud() = default