#[repr(C)]pub struct IPLPathBakeParams {
pub scene: IPLScene,
pub probeBatch: IPLProbeBatch,
pub identifier: IPLBakedDataIdentifier,
pub numSamples: IPLint32,
pub radius: IPLfloat32,
pub threshold: IPLfloat32,
pub visRange: IPLfloat32,
pub pathRange: IPLfloat32,
pub numThreads: IPLint32,
}Expand description
Parameters used to control how pathing data is baked.
Fields§
§scene: IPLSceneThe scene in which the probes exist.
probeBatch: IPLProbeBatchA probe batch containing the probes for which pathing data should be baked.
identifier: IPLBakedDataIdentifierAn identifier for the data layer that should be baked. The identifier determines what data is simulated and stored at each probe. If the probe batch already contains data with this identifier, it will be overwritten.
numSamples: IPLint32Number of point samples to use around each probe when testing whether one probe can see another. To determine if two probes are mutually visible, numSamples * numSamples rays are traced, from each point sample of the first probe, to every other point sample of the second probe.
radius: IPLfloat32When testing for mutual visibility between a pair of probes, each probe is treated as a sphere of this radius (in meters), and point samples are generated within this sphere.
threshold: IPLfloat32When tracing rays to test for mutual visibility between a pair of probes, the fraction of rays that are unoccluded must be greater than this threshold for the pair of probes to be considered mutually visible.
visRange: IPLfloat32If the distance between two probes is greater than this value, the probes are not considered mutually visible. Increasing this value can result in simpler paths, at the cost of increased bake times.
pathRange: IPLfloat32If the length of the path between two probes is greater than this value, the probes are considered to not have any path between them. Increasing this value allows sound to propagate over greater distances, at the cost of increased bake times and memory usage.
numThreads: IPLint32Number of threads to use for baking.
Trait Implementations§
Source§impl Clone for IPLPathBakeParams
impl Clone for IPLPathBakeParams
Source§fn clone(&self) -> IPLPathBakeParams
fn clone(&self) -> IPLPathBakeParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more