Skip to content

Instantly share code, notes, and snippets.

@Gmod4phun
Gmod4phun / blues_masks.lua
Created October 10, 2019 21:27
Blue's Masks and Shadows
--This code can be improved alot.
--Feel free to improve, use or modify in anyway altough credit would be apreciated.
if BMASKS == nil then
BMASKS = {} --Global table, access the functions here
BMASKS.Materials = {} --Cache materials so they dont need to be reloaded
BMASKS.Masks = {} --A table of all active mask objects, you should destroy a mask object when done with it
--The material used to draw the render targets