Skip to content

Ocean Foam Color Inherits Ocean Water Color at Low Water Opacity, Producing Incorrect Visual Results #1638

@Anthony-Gaudino

Description

@Anthony-Gaudino

Description

When the ocean water color opacity is reduced significantly, the foam color appears to inherit or become influenced by the ocean water color.

Image

This can result in foam displaying a strong contrasting tint that looks visually incorrect and makes it difficult to achieve natural-looking water.

Steps to Reproduce

  1. Create or select an ocean component.
  2. Set the ocean water color opacity to a very low value.
  3. Observe the appearance of foam in areas where foam is generated.

Expected Behavior

Foam should maintain a visually appropriate foam color regardless of the water color opacity settings.

Ideally, users should be able to define the foam color independently from the ocean water color.

Actual Behavior

As the ocean water opacity becomes very low, the foam takes on the ocean water color, causing the foam to appear strongly tinted and visually inconsistent with expected foam appearance.

Why This Is a Problem

Foam and water often need to be controlled independently to achieve realistic or stylized water effects.

The current behavior can lead to:

  • Foam with unnatural coloration.
  • Strong visual contrast between foam and surrounding water.
  • Difficulty creating shallow, transparent, tropical, or stylized water.
  • Reduced artistic control over the final appearance of the ocean.
  • Additional workarounds where adjusting the water color unintentionally affects foam appearance.

For example, users may want:

  • White foam over transparent water.
  • Slightly off-white or sandy-colored foam near shorelines.
  • Stylized foam colors for non-realistic environments.

The current coupling between water color and foam appearance makes these scenarios difficult to achieve.

Suggested Solution

Add a dedicated foam color setting to the ocean component.

Possible implementation options include:

  • A configurable foam color parameter.
  • Separate foam color and foam opacity controls.
  • A foam tint multiplier that is independent of the ocean water color.

This would provide artists with direct control over foam appearance and prevent foam coloration from being unintentionally affected by water opacity settings.

Additional Notes

Foam is typically perceived as a separate visual element from the body of water itself. Providing independent color control would improve both realism and artistic flexibility while avoiding unexpected color shifts when adjusting water transparency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNeed to fix

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions