Texture Sorting Issue with Decal when Changing Color at Runtime

Reproduction Steps

1 - Have multiple Character in the scene
2 - Put Decal on each side of their parts
3 - Set the Decal transparency between 0 and 1. ( 0.45 for me )
4 - Put any Texture on the Decal to see the effect ( Mine : “rbxassetid://10287199555” )
5 - Use Code to Lerp the Color of the decals.

local t = 4;
coroutine.wrap(function()
	while wait() do
		local hue = tick() % t / t
		local color = Color3.fromHSV(hue, 1, 1)
		--> set the color
		for _,part in pairs(CollectionService:GetTagged("RainbowColor")) do
			if part.ClassName == "Decal" then
				part.Color3 = color
			elseif part.ClassName == "Part" or part.ClassName == "MeshPart" then
				part.Color = color
			end
		end
	end
end)()

Expected Behavior

The Decals color should Lerp in a Rainbow fashion without causing any issue to the Character Cloth Texture.

Actual Behavior

Video showing the problem : https://i.gyazo.com/5ece5bf6f313ed68635173c3158e1bf5.mp4

The Rendering Sorting seems to have problem to Know what Cloth to display on the Characters.
It only happen with having more then 3 Character with their entire Part cover with those Decal.
Probably causing by the Decal Transparency with their color changing at Runtime.

Workaround

No, I have to live with it Currently. Would be great to see a Fix soon!

Issue Area: Engine
Issue Type: Display
Impact: High
Frequency: Constantly
Date First Experienced: 2022-09-09 12:09:00 (-04:00)
Date Last Experienced: 2022-09-14 00:09:00 (-04:00)

Thanks for the report! We’ll follow up when we have an update for you.

2 Likes

So, so sorry we missed this. Is the issue still happening?

Yeah it has been fixed lately. Thanks for the Follow up