Elyg
9/12/2017 - 5:13 PM

Cull using dot product

Run Over: POINTS Cull using dot product

vector dotDirection = chv("direction");
float dotProduct = dot(normalize(dotDirection), normalize(@N));
float tresh = chf("treshold");

if(dotProduct > tresh)
{
  removepoint(0, @ptnum);
}