Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::PlanarReflection Struct Reference

#include <PlanarReflection.hpp>

Public Attributes

ReflectionAxis axis {ReflectionAxis::Y}
f32 clipOffset {0.02f}
u32 cullingMask {0xFFFFFFFFu}
ReflectionQuality quality {ReflectionQuality::Project}
f32 resolutionScale {0.5f}
u32 maxSize {1024}
ReflectionUpdate update {ReflectionUpdate::EveryFrame}
f32 updatesPerSecond {30.0f}
u32 revision {0}
bool enabled {true}

Detailed Description

A non-recursive capture received by this entity's lit mesh/material. The plane passes through its world origin; the selected local axis is its normal. Surface appearance remains owned by the material's PBR properties.

Definition at line 20 of file PlanarReflection.hpp.

Member Data Documentation

◆ axis

ReflectionAxis esengine::ecs::PlanarReflection::axis {ReflectionAxis::Y}

Definition at line 22 of file PlanarReflection.hpp.

Referenced by planarreflectionApplyJS(), and planarreflectionToJS().

◆ clipOffset

f32 esengine::ecs::PlanarReflection::clipOffset {0.02f}

Definition at line 24 of file PlanarReflection.hpp.

Referenced by planarreflectionApplyJS(), and planarreflectionToJS().

◆ cullingMask

u32 esengine::ecs::PlanarReflection::cullingMask {0xFFFFFFFFu}

Definition at line 26 of file PlanarReflection.hpp.

Referenced by planarreflectionApplyJS(), and planarreflectionToJS().

◆ enabled

bool esengine::ecs::PlanarReflection::enabled {true}

Definition at line 41 of file PlanarReflection.hpp.

Referenced by planarreflectionApplyJS(), and planarreflectionToJS().

◆ maxSize

u32 esengine::ecs::PlanarReflection::maxSize {1024}

Definition at line 32 of file PlanarReflection.hpp.

Referenced by planarreflectionApplyJS(), and planarreflectionToJS().

◆ quality

ReflectionQuality esengine::ecs::PlanarReflection::quality {ReflectionQuality::Project}

Definition at line 28 of file PlanarReflection.hpp.

Referenced by planarreflectionApplyJS(), and planarreflectionToJS().

◆ resolutionScale

f32 esengine::ecs::PlanarReflection::resolutionScale {0.5f}

Definition at line 30 of file PlanarReflection.hpp.

Referenced by planarreflectionApplyJS(), and planarreflectionToJS().

◆ revision

u32 esengine::ecs::PlanarReflection::revision {0}

Increment to request a fresh OnDemand capture from a script or editor action.

Definition at line 39 of file PlanarReflection.hpp.

Referenced by planarreflectionApplyJS(), and planarreflectionToJS().

◆ update

ReflectionUpdate esengine::ecs::PlanarReflection::update {ReflectionUpdate::EveryFrame}

Definition at line 34 of file PlanarReflection.hpp.

Referenced by planarreflectionApplyJS(), and planarreflectionToJS().

◆ updatesPerSecond

f32 esengine::ecs::PlanarReflection::updatesPerSecond {30.0f}

Definition at line 36 of file PlanarReflection.hpp.

Referenced by planarreflectionApplyJS(), and planarreflectionToJS().


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