Class ProgramSpec

java.lang.Object
com.jozufozu.flywheel.core.shader.ProgramSpec

public class ProgramSpec extends Object
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 Details

    • CODEC

      public static final com.mojang.serialization.Codec<ProgramSpec> CODEC
    • name

      public net.minecraft.resources.ResourceLocation name
    • vertex

      public final FileResolution vertex
    • fragment

      public final FileResolution 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

      public SourceFile getVertexFile()
    • getFragmentFile

      public SourceFile getFragmentFile()
    • toString

      public String toString()
      Overrides:
      toString in class Object