SSAOQuality
in package
Table of Contents
Properties
- $bias : float
- $blurScale : float
- $name : string
- $radius : float
- $sampleCount : int
- $scale : float
- $strength : float
Methods
- __construct() : mixed
- custom() : self
- Create a custom quality configuration
- high() : self
- High quality preset
- low() : self
- Low quality preset
- medium() : self
- Medium quality preset
- ultra() : self
- Ultra quality preset
- with() : self
- Create a quality configuration based on this one with modified parameters
Properties
$bias read-only
public
float
$bias
$blurScale read-only
public
float
$blurScale
$name read-only
public
string
$name
$radius read-only
public
float
$radius
$sampleCount read-only
public
int
$sampleCount
$scale read-only
public
float
$scale
$strength read-only
public
float
$strength
Methods
__construct()
public
__construct(float $radius, float $bias, float $strength, float $scale, float $blurScale, int $sampleCount, string $name) : mixed
Parameters
- $radius : float
- $bias : float
- $strength : float
- $scale : float
- $blurScale : float
- $sampleCount : int
- $name : string
custom()
Create a custom quality configuration
public
static custom([float $radius = 0.5 ][, float $bias = 0.025 ][, float $strength = 5.0 ][, float $scale = 1.0 ][, float $blurScale = 1.0 ][, int $sampleCount = 32 ]) : self
Parameters
- $radius : float = 0.5
- $bias : float = 0.025
- $strength : float = 5.0
- $scale : float = 1.0
- $blurScale : float = 1.0
- $sampleCount : int = 32
Return values
selfhigh()
High quality preset
public
static high() : self
Return values
selflow()
Low quality preset
public
static low() : self
Return values
selfmedium()
Medium quality preset
public
static medium() : self
Return values
selfultra()
Ultra quality preset
public
static ultra() : self
Return values
selfwith()
Create a quality configuration based on this one with modified parameters
public
with([float|null $radius = null ][, float|null $bias = null ][, float|null $strength = null ][, float|null $scale = null ][, float|null $blurScale = null ][, int|null $sampleCount = null ][, string|null $name = null ]) : self
Parameters
- $radius : float|null = null
- $bias : float|null = null
- $strength : float|null = null
- $scale : float|null = null
- $blurScale : float|null = null
- $sampleCount : int|null = null
- $name : string|null = null