Heya Everyone!!
I found a lighting system made by @Razorboots which simulates 2000’s Shadow Volumes used in games like DOOM III which is perfect for me trying to replicate 2010 ROBLOX. The issue is that, for some reason, the shadows appear like this.
I don’t know why this is happening as I expected it I set it up correctly. Here’s the code I got from the GitHub implementation tutorial.
local Modules = script.Parent.Modules
local Shadows = require(Modules.Shadow)
Shadows.setPartProperty(workspace.Baseplate, "isShadowCanvasTop", true)
Shadows.setPartProperty(workspace.wall, "isShadowCanvasAll", true)
Shadows.setPartProperty(workspace.wall, "isShadowOccluder", true)
--[[
Shadows.setModelProperty(workspace.Props, "isShadowCanvasAll", true)
Shadows.setModelProperty(workspace.Props, "isShadowOccluder", true)
]]
Shadows.getAllLightSources(workspace)
local RootManiFolds = Shadows.getRootManifolds()
Shadows.createAllShadowMeshes(RootManiFolds)
game:GetService("RunService").Heartbeat:Connect(function()
Shadows.updateAllLightSources()
RootManiFolds = Shadows.updateRootManifolds(RootManiFolds)
end)
GITHUB PAGE: GitHub - Razorboot/luau-2016-shadow-engine


