SetWaterColor

This command sets the diffuse color of the water.

Syntax

Parameters

Example

--Create a window
window = Window:Create()
context = Context:Create(window)
world = World:Create()
camera = Camera:Create()
camera:Move(0,1,-3)

local light = DirectionalLight:Create()
light:SetRotation(35,35,0)

camera:SetSkybox("Materials/Sky/skybox_texture.tex")

world:SetWaterMode(true)
world:SetWaterColor(0,0.5,0.5,1)
world:SetWaterHeight(0.0)

while true do
if window:Closed() or window:KeyHit(Key.Escape) then return false end

Time:Update()
world:Update()
world:Render()
context:Sync(false)

end