Class ShaderSet

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class ShaderSet
    extends java.lang.Object
    implements java.io.Closeable
    Shader programs for each kind of materials
    • Constructor Summary

      Constructors 
      Constructor Description
      ShaderSet()
      Construct the instance of ShaderSet
    • Method Summary

      Modifier and Type Method Description
      void close()
      Dispose this instance and release all shader programs.
      ShaderProgram getFallback()
      Gets the fallback shader when required shader is unavailable
      ShaderProgram getLambert()
      Gets the shader that used to render the lambert material
      ShaderProgram getPbr()
      Gets the shader that used to render the PBR material
      ShaderProgram getPhong()
      Gets the shader that used to render the phong material
      void setFallback​(ShaderProgram value)
      Sets the fallback shader when required shader is unavailable
      void setLambert​(ShaderProgram value)
      Sets the shader that used to render the lambert material
      void setPbr​(ShaderProgram value)
      Sets the shader that used to render the PBR material
      void setPhong​(ShaderProgram value)
      Sets the shader that used to render the phong material
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShaderSet

        public ShaderSet()
        Construct the instance of ShaderSet
    • Method Detail

      • getLambert

        public ShaderProgram getLambert()
        Gets the shader that used to render the lambert material
      • setLambert

        public void setLambert​(ShaderProgram value)
        Sets the shader that used to render the lambert material
        Parameters:
        value - New value
      • getPhong

        public ShaderProgram getPhong()
        Gets the shader that used to render the phong material
      • setPhong

        public void setPhong​(ShaderProgram value)
        Sets the shader that used to render the phong material
        Parameters:
        value - New value
      • getPbr

        public ShaderProgram getPbr()
        Gets the shader that used to render the PBR material
      • setPbr

        public void setPbr​(ShaderProgram value)
        Sets the shader that used to render the PBR material
        Parameters:
        value - New value
      • getFallback

        public ShaderProgram getFallback()
        Gets the fallback shader when required shader is unavailable
      • setFallback

        public void setFallback​(ShaderProgram value)
        Sets the fallback shader when required shader is unavailable
        Parameters:
        value - New value
      • close

        public void close()
        Dispose this instance and release all shader programs.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable