This command is used to toggle water on and off in the world.
--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