Game Development Reference
In-Depth Information
Since shaders have to be loaded from a file or memory (a file is recommended), it is im-
portant that we don't have to load them several times. If this sounds familiar, it is because
we used this technique before with our AssetManager class. Shaders can be considered
as another resource that the manager needs to keep track of. Furthermore, we can get the
cached shaders from anywhere in the program.
Search WWH ::




Custom Search