Class ShaderGroup

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class ShaderGroup
    extends java.lang.Object
    implements java.lang.AutoCloseable
    • Field Detail

      • name

        private final java.lang.String name
      • passes

        private final java.util.List<Shader> passes
      • customRenderTargets

        private final java.util.Map<java.lang.String,​Framebuffer> customRenderTargets
      • fullSizedTargets

        private final java.util.List<Framebuffer> fullSizedTargets
      • shaderOrthoMatrix

        private Matrix4f shaderOrthoMatrix
      • screenWidth

        private int screenWidth
      • screenHeight

        private int screenHeight
      • time

        private float time
      • lastStamp

        private float lastStamp
    • Constructor Detail

    • Method Detail

      • load

        private void load​(TextureManager p_152765_1_,
                          ResourceLocation p_152765_2_)
                   throws java.io.IOException,
                          com.google.gson.JsonSyntaxException
        Throws:
        java.io.IOException
        com.google.gson.JsonSyntaxException
      • parseTargetNode

        private void parseTargetNode​(com.google.gson.JsonElement p_148027_1_)
                              throws JSONException
        Throws:
        JSONException
      • parsePassNode

        private void parsePassNode​(TextureManager p_152764_1_,
                                   com.google.gson.JsonElement p_152764_2_)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseUniformNode

        private void parseUniformNode​(com.google.gson.JsonElement p_148028_1_)
                               throws JSONException
        Throws:
        JSONException
      • getTempTarget

        public Framebuffer getTempTarget​(java.lang.String p_177066_1_)
      • addTempTarget

        public void addTempTarget​(java.lang.String p_148020_1_,
                                  int p_148020_2_,
                                  int p_148020_3_)
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
      • addPass

        public Shader addPass​(java.lang.String p_148023_1_,
                              Framebuffer p_148023_2_,
                              Framebuffer p_148023_3_)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • updateOrthoMatrix

        private void updateOrthoMatrix()
      • resize

        public void resize​(int p_148026_1_,
                           int p_148026_2_)
      • process

        public void process​(float p_148018_1_)
      • getName

        public final java.lang.String getName()
      • getRenderTarget

        private Framebuffer getRenderTarget​(java.lang.String p_148017_1_)