Class VelvetShaderInstance

java.lang.Object
net.minecraft.client.renderer.ShaderInstance
dev.cammiescorner.velvet.api.util.VelvetShaderInstance
All Implemented Interfaces:
com.mojang.blaze3d.shaders.Shader, SamplerAccess, AutoCloseable

public class VelvetShaderInstance extends net.minecraft.client.renderer.ShaderInstance
  • Field Summary

    Fields inherited from class net.minecraft.client.renderer.ShaderInstance

    CHUNK_OFFSET, COLOR_MODULATOR, FOG_COLOR, FOG_END, FOG_SHAPE, FOG_START, GAME_TIME, GLINT_ALPHA, LIGHT0_DIRECTION, LIGHT1_DIRECTION, LINE_WIDTH, MODEL_VIEW_MATRIX, PROJECTION_MATRIX, SCREEN_SIZE, SHADER_PATH, TEXTURE_MATRIX
  • Constructor Summary

    Constructors
    Constructor
    Description
    VelvetShaderInstance(net.minecraft.server.packs.resources.ResourceProvider resourceProvider, net.minecraft.resources.ResourceLocation id, com.mojang.blaze3d.vertex.VertexFormat vertexFormat)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.resources.ResourceLocation
    rewriteAsId(String input, String containedId)
     

    Methods inherited from class net.minecraft.client.renderer.ShaderInstance

    apply, attachToProgram, clear, close, getFragmentProgram, getId, getName, getUniform, getVertexFormat, getVertexProgram, markDirty, safeGetUniform, setDefaultUniforms, setSampler

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface dev.cammiescorner.velvet.api.util.SamplerAccess

    velvet$getSamplerNames, velvet$getSamplerShaderLocs, velvet$hasSampler, velvet$removeSampler
  • Constructor Details

    • VelvetShaderInstance

      public VelvetShaderInstance(net.minecraft.server.packs.resources.ResourceProvider resourceProvider, net.minecraft.resources.ResourceLocation id, com.mojang.blaze3d.vertex.VertexFormat vertexFormat) throws IOException
      Throws:
      IOException
  • Method Details

    • rewriteAsId

      public static net.minecraft.resources.ResourceLocation rewriteAsId(String input, String containedId)