class

PointClickEngine::Graphics::Effects::SceneEffects::FogEffect

Inherits PointClickEngine::Graphics::Effects::SceneEffects::BaseSceneEffect < PointClickEngine::Graphics::Effects::Effect < Reference < Object

Fog effect that reduces visibility and adds atmosphere

Constructors

new(density : Float32 = 0.5_f32, duration : Float32 = 0.0_f32)
Source

Instance methods

apply(context : EffectContext)

Apply effect to target (implemented by subclasses)

Source
apply_to_layer(context : EffectContext, layer : Layers::Layer)

Apply effect to a specific layer

Source
color
Source
color=(color : RL::Color)
Source
density
Source
density=(density : Float32)
Source
draw_overlay(renderer : PointClickEngine::Graphics::Renderer, viewport_width : Int32, viewport_height : Int32)

Draw fog overlay (called separately after layer rendering)

Source
far_distance
Source
far_distance=(far_distance : Float32)
Source
near_distance
Source
near_distance=(near_distance : Float32)
Source
speed
Source
speed=(speed : Float32)
Source
update(dt : Float32)

Update effect state

Source