Class ShaderTemplatingLoader

  • public class ShaderTemplatingLoader
    extends java.lang.Object
    Loads shaders with extra functionality to add code from other shaders. Recognizes the directive #include shader.glsl in .glsl files.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String load​(com.badlogic.gdx.files.FileHandle fh)  
      static java.lang.String load​(java.lang.String file)  
      static java.lang.String resolveIncludes​(java.lang.String in)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShaderTemplatingLoader

        public ShaderTemplatingLoader()
    • Method Detail

      • load

        public static java.lang.String load​(java.lang.String file)
      • load

        public static java.lang.String load​(com.badlogic.gdx.files.FileHandle fh)
      • resolveIncludes

        public static java.lang.String resolveIncludes​(java.lang.String in)