Caustics
The caustics effect in Oceanology simulates the way light behaves when it passes through water and reflects on the ground beneath it. This feature is available for both ocean and lake environments, each having its own integration approach.
Ocean Caustics Setup
To enable caustics for ocean surfaces, follow these steps:
-
Add the Light Source Controller Actor
- Drag the
OceanologyLightSourceController
actor into your scene.
- Drag the
-
Configure the Directional Light
- Ensure you have a DirectionalLight in the scene.
- Create a tag (e.g., "Sun") and assign it to both the DirectionalLight and the
OceanologyLightSourceController
. This tag is essential for identifying which light source will generate the caustics effect.
-
Set Parameters in OceanologyLightSourceController
- In the details of the
OceanologyLightSourceController
, specify:- The water component (
BP_OceanologyInfiniteOcean
). - The directional light (the DirectionalLight with the tag "Sun").
- Select the appropriate light function material (
M_CausticsDirectional_LightInst
) responsible for simulating the caustics effect on the ocean surface.
- The water component (
- In the details of the
Once configured, the caustics will adapt dynamically to the movement of ocean waves, providing a realistic visual representation of how light interacts with the water.
Lake Caustics Setup
For lakes, the setup is more straightforward:
-
Add OceanologyLake
- Simply drag the
OceanologyLake
actor into your scene.
- Simply drag the
-
Adjust Caustics Parameters
- In the details of the
OceanologyLake
, navigate to the caustics section. - Enable "Enable Caustics on Ground" and tweak parameters like DarknessExposure, MaximumDarkness, and MinimumDarkness to control the appearance of caustics on the lakebed.
- In the details of the
The lake uses a decal shader (M_Caustics_Decal_Inst
) to project the caustics effect, allowing for fine control over its intensity and look.
Summary
By following these instructions, you can fully integrate caustics into your ocean or lake environments, enhancing the realism of light interaction with water surfaces. The caustics effect dynamically adapts to wave movement, offering a visually appealing representation of underwater light behavior, contributing to an immersive experience.