MaterialRef¶
-
class
guerilla.
MaterialRef
¶ Bases:
guerilla.Material
A MaterialRef is a
Material
which is loaded from a file, as a referenceMaterialRef provides a convenient way of using file based shaders, so whenever you updatethe shader file, any reference to the shader file is automatically updated. Since a MaterialRef is also a reference, it’s content can be overloaded. Create a MaterialRef using the Material.createReference function.