FlatWaterRenderer

FlatWaterRenderer

Handles pre-rendering of water planes. Attach this to the rendersystem pre-renderers.

Constructor

new FlatWaterRenderer(settingsopt)

Parameters:
Name Type Attributes Description
settings Object <optional>

Water settings passed in a JSON object

Properties
Name Type Attributes Default Description
useRefraction boolean <optional>
true

Render refraction in water

divider boolean <optional>
2

Resolution divider for reflection/refraction

normalsUrl boolean <optional>

Url to texture to use as normalmap

normalsTexture boolean <optional>

Texture instance to use as normalmap

updateWaterPlaneFromEntity boolean <optional>
true

Use water entity y for water plane position