This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--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 |