Terrain.WaterReflectance is live

This new property allows you to fine-tune the look of water reflections. 0 = no reflections, 1 = full reflections.

Animating WaterReflectance with default WaterTransparency:

Animating WaterReflectance with WaterTransparency=1:

Enjoy.

P.S. This is currently available on PC/Mac and will roll out to Xbox and mobile over the next week or two. The update is purely visual and does not affect gameplay so you probably should not be too concerned about other platforms not getting the update but if you are - wait for the update to be released on mobile/console before using it in your games.

39 Likes

I can only imagine the cool (under?)water games/showcases that will start to be made. This and the other water properties were great additions. (Game is “Underwater World”)

12 Likes

Now the thumbnail errors just have to be fixed!

So… I think I just figured out how to abuse the feature (courtesy of CloneTrooper1019). :stuck_out_tongue:


In a local script:

[code]
local Size = Vector3.new(16,16,1)
local Depth = CFrame.new(0,0,-4)
local Water = Enum.Material.Water
local Air = Enum.Material.Air

local Terrain = game.Workspace.Terrain
local Camera = game.Workspace.CurrentCamera

Terrain.WaterTransparency = 1
Terrain.WaterReflectance = 0
Terrain.WaterColor = Color3.new(0,0,0)

local LastCF = CFrame.new()
game:GetService(“RunService”):BindToRenderStep(“WaterUpdate”,801,function()
local CF = Camera.CFrame * Depth

Terrain:FillBlock(LastCF,Size,Air)
Terrain:FillBlock(CF,Size,Water)

LastCF = CF

end)[/code]

5 Likes

this is such a cool update