Package gaiasky.assets
Class ShaderTemplatingLoader
java.lang.Object
gaiasky.assets.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.-
Constructor Summary
Constructors Constructor Description ShaderTemplatingLoader() -
Method Summary
Modifier and Type Method Description static java.lang.Stringload(com.badlogic.gdx.files.FileHandle fh)static java.lang.Stringload(java.lang.String file)static java.lang.StringresolveIncludes(java.lang.String in)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ShaderTemplatingLoader
public ShaderTemplatingLoader()
-
-
Method Details
-
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)
-