class

PointClickEngine::Graphics::Effects::SceneEffects::RainEffect

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

Rain effect with particles

Constructors

new(intensity : 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
draw_overlay(renderer : PointClickEngine::Graphics::Renderer)

Draw rain drops

Source
drop_color
Source
drop_color=(drop_color : RL::Color)
Source
drop_speed
Source
drop_speed=(drop_speed : Float32)
Source
intensity
Source
intensity=(intensity : Float32)
Source
update(dt : Float32)

Update effect state

Source
wind_speed
Source
wind_speed=(wind_speed : Float32)
Source