Added Shader#get to retrieve instance of Shader if shader with name exists

This commit is contained in:
2019-08-13 07:26:06 -05:00
parent e30ed7c6be
commit 993e59aa94

View File

@@ -21,6 +21,10 @@ module CyberarmEngine
@@shaders.dig(name).is_a?(Shader)
end
def self.get(name)
@@shaders.dig(name)
end
def self.active_shader
@active_shader
end