Class Shader

java.lang.Object
zombie.core.skinnedmodel.shader.Shader

public class Shader
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    int FragID  
    java.lang.String name  
    int ShaderID  
    int VertID  
  • Constructor Summary

    Constructors
    Constructor Description
    Shader​(java.lang.String name, boolean bStatic)  
  • Method Summary

    Modifier and Type Method Description
    void End()  
    int getID()  
    void setAmbient​(float amb)  
    void setLight​(int index, float x, float y, float z, float r, float g, float b, float rad, ModelInstance inst)  
    void setMatrixPalette​(org.lwjgl.util.vector.Matrix4f[] skin)  
    void setTexture​(Texture tex)  
    void setTint​(float x, float y, float z)  
    void setTransformMatrix​(org.lwjgl.util.vector.Matrix4f matrix4f)  
    void Start()  
    void updateParams()  
    void updateParamsSkin()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      public java.lang.String name
    • ShaderID

      public int ShaderID
    • FragID

      public int FragID
    • VertID

      public int VertID
  • Constructor Details

    • Shader

      public Shader​(java.lang.String name, boolean bStatic)
  • Method Details

    • setTexture

      public void setTexture​(Texture tex)
    • getID

      public int getID()
    • Start

      public void Start()
    • End

      public void End()
    • updateParams

      public void updateParams()
    • updateParamsSkin

      public void updateParamsSkin()
    • setMatrixPalette

      public void setMatrixPalette​(org.lwjgl.util.vector.Matrix4f[] skin)
    • setTint

      public void setTint​(float x, float y, float z)
    • setLight

      public void setLight​(int index, float x, float y, float z, float r, float g, float b, float rad, ModelInstance inst)
    • setAmbient

      public void setAmbient​(float amb)
    • setTransformMatrix

      public void setTransformMatrix​(org.lwjgl.util.vector.Matrix4f matrix4f)