Class ShaderUniform

java.lang.Object
net.minecraft.client.shader.ShaderDefault
net.minecraft.client.shader.ShaderUniform
All Implemented Interfaces:
AutoCloseable

public class ShaderUniform extends ShaderDefault implements AutoCloseable
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • location

      private int location
    • count

      private final int count
    • type

      private final int type
    • intValues

      private final IntBuffer intValues
    • floatValues

      private final FloatBuffer floatValues
    • name

      private final String name
    • dirty

      private boolean dirty
    • parent

      private final IShaderManager parent
  • Constructor Details

    • ShaderUniform

      public ShaderUniform(String p_i45092_1_, int p_i45092_2_, int p_i45092_3_, IShaderManager p_i45092_4_)
  • Method Details

    • glGetUniformLocation

      public static int glGetUniformLocation(int p_227806_0_, CharSequence p_227806_1_)
    • uploadInteger

      public static void uploadInteger(int p_227805_0_, int p_227805_1_)
    • glGetAttribLocation

      public static int glGetAttribLocation(int p_227807_0_, CharSequence p_227807_1_)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • markDirty

      private void markDirty()
    • getTypeFromString

      public static int getTypeFromString(String p_148085_0_)
    • setLocation

      public void setLocation(int p_148084_1_)
    • getName

      public String getName()
    • set

      public void set(float p_148090_1_)
      Overrides:
      set in class ShaderDefault
    • set

      public void set(float p_148087_1_, float p_148087_2_)
      Overrides:
      set in class ShaderDefault
    • set

      public void set(float p_148095_1_, float p_148095_2_, float p_148095_3_)
      Overrides:
      set in class ShaderDefault
    • set

      public void set(float p_148081_1_, float p_148081_2_, float p_148081_3_, float p_148081_4_)
      Overrides:
      set in class ShaderDefault
    • setSafe

      public void setSafe(float p_148092_1_, float p_148092_2_, float p_148092_3_, float p_148092_4_)
      Overrides:
      setSafe in class ShaderDefault
    • setSafe

      public void setSafe(int p_148083_1_, int p_148083_2_, int p_148083_3_, int p_148083_4_)
      Overrides:
      setSafe in class ShaderDefault
    • set

      public void set(float[] p_148097_1_)
      Overrides:
      set in class ShaderDefault
    • set

      public void set(Matrix4f p_195652_1_)
      Overrides:
      set in class ShaderDefault
    • upload

      public void upload()
    • uploadAsInteger

      private void uploadAsInteger()
    • uploadAsFloat

      private void uploadAsFloat()
    • uploadAsMatrix

      private void uploadAsMatrix()