Plasma Engine  2.0
Loading...
Searching...
No Matches
plLSAODepthCompareFunction Struct Reference

Defines the depth compare function to be used to decide sample weights. More...

#include <LSAOPass.h>

Inheritance diagram for plLSAODepthCompareFunction:

Public Types

enum  Enum { Depth , Normal , NormalAndSampleDistance , Default = NormalAndSampleDistance }
 
using StorageType = plUInt8
 

Detailed Description

Defines the depth compare function to be used to decide sample weights.

Member Enumeration Documentation

◆ Enum

Enumerator
Depth 

A hard cutoff function between the linear depth values. Samples with an absolute distance greater than plLSAOPass::SetDepthCutoffDistance are ignored.

Normal 

Samples that are on the same plane as constructed by the center position and normal will be weighted higher than those samples that are above or below the plane.

NormalAndSampleDistance 

Same as Normal, but if two samples are tested, their distance to the center position is is inversely multiplied as well, giving closer matches a higher weight.


The documentation for this struct was generated from the following file: