Class ProgramSpec
java.lang.Object
com.jozufozu.flywheel.core.shader.ProgramSpec
An object describing a shader program that can be loaded by flywheel.
These are defined through json. All ProgramSpecs in assets/modid/flywheel/programs are parsed and
processed. One ProgramSpec typically specifies one "material" that can be used in game to render things.
All shader source files in assets/modid/flywheel/shaders are completely loaded and parsed into
SourceFiles, but not compiled until one of them is
referenced by a ProgramSpec.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ProgramSpec>final FileResolutionnet.minecraft.resources.ResourceLocationfinal FileResolution -
Constructor Summary
ConstructorsConstructorDescriptionProgramSpec(net.minecraft.resources.ResourceLocation vertex, net.minecraft.resources.ResourceLocation fragment) -
Method Summary
-
Field Details
-
CODEC
-
name
public net.minecraft.resources.ResourceLocation name -
vertex
-
fragment
-
-
Constructor Details
-
ProgramSpec
public ProgramSpec(net.minecraft.resources.ResourceLocation vertex, net.minecraft.resources.ResourceLocation fragment)
-
-
Method Details
-
setName
public void setName(net.minecraft.resources.ResourceLocation name) -
getSourceLoc
public net.minecraft.resources.ResourceLocation getSourceLoc() -
getFragmentLoc
public net.minecraft.resources.ResourceLocation getFragmentLoc() -
getVertexFile
-
getFragmentFile
-
toString
-