add setShaderfuck for consistency

This commit is contained in:
Jill 2022-09-25 15:23:30 +03:00
parent 7b198abc55
commit 92aa7f33b3
1 changed files with 9 additions and 0 deletions

View File

@ -260,6 +260,15 @@
actor:SetShader(shader.__raw)
end
function setShaderfuck(shader)
if not shader.__raw then error('uranium: cannot set shader during module loadtime! put this in uranium.init or actor:addcommand(\'Init\', ...)', 2) end
DISPLAY:ShaderFuck(shader.__raw)
end
function clearShaderfuck()
DISPLAY:ClearShaderFuck()
end
-- actors
local actorQueue = {}