Water part's transparency render issue

Hi everyone, i am encountering a persistent rendering issue with my custom water system. The setup consists of multiple transparent Parts layered on top of each other to create a depth effect. However, when the camera moves to a high/steep viewing angle, the top-most layer (the surface) appears to be discarded or becomes invisible, showing only the darker layers underneath.

custom water part (3.6 KB).

Water
├── Layer 1 : Part
│   ├── BrickColor = Really black
│   ├── Transparency = 0
│   └── Material = Plastic
├── Layer 2 : Part
│   ├── BrickColor = Really black
│   ├── Transparency = 0.3
│   └── Material = Plastic
└── Water : Part
    ├── BrickColor = Bright bluish green
    ├── Transparency = 0.5
    └── Material = Neon

Expected:

Got this when looking upwards:

Video:

I have tested this on both macOS (MacBook Pro M4) and Windows (Lenovo Legion 5) and encountered the same issue.

What solutions have i tried so far?

  1. Setting the transparency of Water / Layer 2 to 0 resolves the rendering issue. However, if I revert it to 0.02 , the artifact reappears.
  2. Deleting Layer 2 also fixes the glitch. When only Layer 1 is present, no rendering errors are observed.

I am not sure whether this is an engine bug or an intended rendering behavior.

This is an intended engine limitation. The issue you’re running into is with how Roblox calculates the rendering order for transparent parts. The engine draws transparent parts based on the distance from the Camera to the part’s exact center point position.

Since your Layer 2 and Water parts are both semi-transparent and share almost the exact same physical space, looking up at a steep angle causes the camera to mathematically get closer to the bottom layer’s center point and forces the engine to guess incorrectly and draw Layer 2 on top. (This is why I assume deleting Layer 2 or making it opaque fixed it for you; if the engine only has one transparent part to draw it doesn’t have to do any sorting math).

If you want to know more about how the engine handles transparent objects, I recommend checking out this post that discusses a very similar issue:

However, since your glitch only happens at specific camera angles, you can write a script that temporarily hides Layer 2 the exact millisecond you look up.

local RunService = game:GetService("RunService")
local Workspace = game:GetService("Workspace")

local camera = Workspace.CurrentCamera
local layer2 = Workspace:WaitForChild("Water"):WaitForChild("Layer 2")
local originalTransparency = layer2.Transparency

--The threshold number, you might need to tweak it (it's a value between -1 and 1)
local GLITCH_THRESHOLD = -0.2 

RunService.RenderStepped:Connect(function()
	local lookY = camera.CFrame.LookVector.Y

	if lookY > GLITCH_THRESHOLD then
		layer2.Transparency = 1
	else
		layer2.Transparency = originalTransparency
	end
end)