Package icyllis.arc3d.granite.shading
Interface ShaderBuilder
- All Known Subinterfaces:
FPFragmentBuilder,VertexGeomBuilder,XPFragmentBuilder
- All Known Implementing Classes:
FragmentShaderBuilder,ShaderBuilderBase,VertexShaderBuilder
public interface ShaderBuilder
Interface for all shaders builders.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcodeAppend(String str) Writes the specified string to one of the shaders.voidcodeAppendf(String format, Object... args) Writes a formatted string to one of the shaders using the specified format string and arguments.voidcodePrependf(String format, Object... args) Similar tocodeAppendf(String, Object...), but writes at the beginning.getMangledName(String baseName) Generates a mangled name for a helper function in the fragment shader.
-
Method Details
-
codeAppend
Writes the specified string to one of the shaders. -
codeAppendf
Writes a formatted string to one of the shaders using the specified format string and arguments.- See Also:
-
codePrependf
Similar tocodeAppendf(String, Object...), but writes at the beginning. -
getMangledName
Generates a mangled name for a helper function in the fragment shader. Will give consistent results if called more than once.
-