Class ShaderInstance

java.lang.Object
net.minecraft.client.renderer.ShaderInstance
All Implemented Interfaces:
Shader, AutoCloseable

public class ShaderInstance extends Object implements Shader, AutoCloseable
  • Field Details

    • SHADER_PATH

      public static final String SHADER_PATH
      See Also:
    • SHADER_CORE_PATH

      private static final String SHADER_CORE_PATH
      See Also:
    • SHADER_INCLUDE_PATH

      private static final String SHADER_INCLUDE_PATH
      See Also:
    • LOGGER

      static final org.slf4j.Logger LOGGER
    • DUMMY_UNIFORM

      private static final AbstractUniform DUMMY_UNIFORM
    • ALWAYS_REAPPLY

      private static final boolean ALWAYS_REAPPLY
      See Also:
    • lastAppliedShader

      private static ShaderInstance lastAppliedShader
    • lastProgramId

      private static int lastProgramId
    • samplerMap

      private final Map<String,Object> samplerMap
    • samplerNames

      private final List<String> samplerNames
    • samplerLocations

      private final List<Integer> samplerLocations
    • uniforms

      private final List<Uniform> uniforms
    • uniformLocations

      private final List<Integer> uniformLocations
    • uniformMap

      private final Map<String,Uniform> uniformMap
    • programId

      private final int programId
    • name

      private final String name
    • dirty

      private boolean dirty
    • blend

      private final BlendMode blend
    • attributes

      private final List<Integer> attributes
    • attributeNames

      private final List<String> attributeNames
    • vertexProgram

      private final Program vertexProgram
    • fragmentProgram

      private final Program fragmentProgram
    • vertexFormat

      private final VertexFormat vertexFormat
    • MODEL_VIEW_MATRIX

      @Nullable public final Uniform MODEL_VIEW_MATRIX
    • PROJECTION_MATRIX

      @Nullable public final Uniform PROJECTION_MATRIX
    • INVERSE_VIEW_ROTATION_MATRIX

      @Nullable public final Uniform INVERSE_VIEW_ROTATION_MATRIX
    • TEXTURE_MATRIX

      @Nullable public final Uniform TEXTURE_MATRIX
    • SCREEN_SIZE

      @Nullable public final Uniform SCREEN_SIZE
    • COLOR_MODULATOR

      @Nullable public final Uniform COLOR_MODULATOR
    • LIGHT0_DIRECTION

      @Nullable public final Uniform LIGHT0_DIRECTION
    • LIGHT1_DIRECTION

      @Nullable public final Uniform LIGHT1_DIRECTION
    • FOG_START

      @Nullable public final Uniform FOG_START
    • FOG_END

      @Nullable public final Uniform FOG_END
    • FOG_COLOR

      @Nullable public final Uniform FOG_COLOR
    • FOG_SHAPE

      @Nullable public final Uniform FOG_SHAPE
    • LINE_WIDTH

      @Nullable public final Uniform LINE_WIDTH
    • GAME_TIME

      @Nullable public final Uniform GAME_TIME
    • CHUNK_OFFSET

      @Nullable public final Uniform CHUNK_OFFSET
  • Constructor Details

  • Method Details