Program: 626
Project: 626
Buggy source:
@Override public void applyParameters(Material program){
  super.applyParameters(program);
  int texId=0;
  DynamicFBOsManager dynamicFBOsManager=CoreRegistry.get(DynamicFBOsManager.class);
  FBO sceneOpaque=dynamicFBOsManager.get(DefaultDynamicFBOs.ReadOnlyGBuffer.getName());
  if (sceneOpaque != null) {
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    sceneOpaque.bindTexture();
    program.setInt("String_Node_Str",texId++,true);
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    sceneOpaque.bindDepthTexture();
    program.setInt("String_Node_Str",texId++,true);
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    sceneOpaque.bindNormalsTexture();
    program.setInt("String_Node_Str",texId++,true);
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    sceneOpaque.bindLightBufferTexture();
    program.setInt("String_Node_Str",texId++,true);
  }
  FBO sceneReflectiveRefractive=dynamicFBOsManager.get(ChunksRefractiveReflectiveNode.REFRACTIVE_REFLECTIVE_URN);
  if (sceneReflectiveRefractive != null) {
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    sceneReflectiveRefractive.bindTexture();
    program.setInt("String_Node_Str",texId++,true);
  }
  RenderingConfig renderingConfig=CoreRegistry.get(Config.class).getRendering();
  Camera activeCamera=CoreRegistry.get(WorldRenderer.class).getActiveCamera();
  if (renderingConfig == null || activeCamera == null) {
    return;
  }
  if (renderingConfig.isLocalReflections()) {
    if (sceneReflectiveRefractive != null) {
      GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
      sceneReflectiveRefractive.bindNormalsTexture();
      program.setInt("String_Node_Str",texId++,true);
    }
    program.setMatrix4("String_Node_Str",activeCamera.getInverseProjectionMatrix(),true);
    program.setMatrix4("String_Node_Str",activeCamera.getProjectionMatrix(),true);
  }
  if (renderingConfig.isSsao()) {
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    dynamicFBOsManager.bindFboColorTexture(AmbientOcclusionPassesNode.SSAO_BLURRED_URN);
    program.setInt("String_Node_Str",texId++,true);
  }
  if (renderingConfig.isOutline()) {
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    dynamicFBOsManager.bindFboColorTexture(OutlineNode.OUTLINE_URN);
    program.setInt("String_Node_Str",texId++,true);
    program.setFloat("String_Node_Str",outlineDepthThreshold,true);
    program.setFloat("String_Node_Str",outlineThickness,true);
  }
  if (renderingConfig.isVolumetricFog()) {
    program.setMatrix4("String_Node_Str",activeCamera.getInverseViewProjectionMatrix(),true);
  }
  if (renderingConfig.isInscattering()) {
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    dynamicFBOsManager.bindFboColorTexture(SkyBandsNode.SKY_BAND_1_URN);
    program.setInt("String_Node_Str",texId++,true);
    Vector4f skyInscatteringSettingsFrag=new Vector4f();
    skyInscatteringSettingsFrag.y=skyInscatteringStrength;
    skyInscatteringSettingsFrag.z=skyInscatteringLength;
    skyInscatteringSettingsFrag.w=skyInscatteringThreshold;
    program.setFloat4("String_Node_Str",skyInscatteringSettingsFrag,true);
  }
}

Fixed version (ground truth):
@Override public void applyParameters(Material program){
  super.applyParameters(program);
  int texId=0;
  DynamicFBOsManager dynamicFBOsManager=CoreRegistry.get(DynamicFBOsManager.class);
  FBO sceneOpaque=dynamicFBOsManager.get(DefaultDynamicFBOs.READ_ONLY_GBUFFER.getName());
  if (sceneOpaque != null) {
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    sceneOpaque.bindTexture();
    program.setInt("String_Node_Str",texId++,true);
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    sceneOpaque.bindDepthTexture();
    program.setInt("String_Node_Str",texId++,true);
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    sceneOpaque.bindNormalsTexture();
    program.setInt("String_Node_Str",texId++,true);
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    sceneOpaque.bindLightBufferTexture();
    program.setInt("String_Node_Str",texId++,true);
  }
  FBO sceneReflectiveRefractive=dynamicFBOsManager.get(ChunksRefractiveReflectiveNode.REFRACTIVE_REFLECTIVE_URN);
  if (sceneReflectiveRefractive != null) {
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    sceneReflectiveRefractive.bindTexture();
    program.setInt("String_Node_Str",texId++,true);
  }
  RenderingConfig renderingConfig=CoreRegistry.get(Config.class).getRendering();
  Camera activeCamera=CoreRegistry.get(WorldRenderer.class).getActiveCamera();
  if (renderingConfig == null || activeCamera == null) {
    return;
  }
  if (renderingConfig.isLocalReflections()) {
    if (sceneReflectiveRefractive != null) {
      GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
      sceneReflectiveRefractive.bindNormalsTexture();
      program.setInt("String_Node_Str",texId++,true);
    }
    program.setMatrix4("String_Node_Str",activeCamera.getInverseProjectionMatrix(),true);
    program.setMatrix4("String_Node_Str",activeCamera.getProjectionMatrix(),true);
  }
  if (renderingConfig.isSsao()) {
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    dynamicFBOsManager.bindFboColorTexture(AmbientOcclusionPassesNode.SSAO_BLURRED_URN);
    program.setInt("String_Node_Str",texId++,true);
  }
  if (renderingConfig.isOutline()) {
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    dynamicFBOsManager.bindFboColorTexture(OutlineNode.OUTLINE_URN);
    program.setInt("String_Node_Str",texId++,true);
    program.setFloat("String_Node_Str",outlineDepthThreshold,true);
    program.setFloat("String_Node_Str",outlineThickness,true);
  }
  if (renderingConfig.isVolumetricFog()) {
    program.setMatrix4("String_Node_Str",activeCamera.getInverseViewProjectionMatrix(),true);
  }
  if (renderingConfig.isInscattering()) {
    GL13.glActiveTexture(GL13.GL_TEXTURE0 + texId);
    dynamicFBOsManager.bindFboColorTexture(SkyBandsNode.SKY_BAND_1_URN);
    program.setInt("String_Node_Str",texId++,true);
    Vector4f skyInscatteringSettingsFrag=new Vector4f();
    skyInscatteringSettingsFrag.y=skyInscatteringStrength;
    skyInscatteringSettingsFrag.z=skyInscatteringLength;
    skyInscatteringSettingsFrag.w=skyInscatteringThreshold;
    program.setFloat4("String_Node_Str",skyInscatteringSettingsFrag,true);
  }
}