Module imp3d

Class AlgorithmSwitchShader

All Implemented Interfaces:
Scattering, Shader, Manageable, Shareable, Scattering, Shader

public class AlgorithmSwitchShader extends SwitchShader
  • Field Details

  • Constructor Details

    • AlgorithmSwitchShader

      public AlgorithmSwitchShader()
    • AlgorithmSwitchShader

      public AlgorithmSwitchShader(Shader guiShader, Shader raytracerShader, Shader radiationShader)
    • AlgorithmSwitchShader

      public AlgorithmSwitchShader(Shader guiShader, Shader radiationShader)
  • Method Details

    • getAverageColor

      public int getAverageColor()
      Description copied from interface: Scattering
      Returns an average color for the scattering entity. This color is used for simplified graphical representations of the corresponding objects.
      Returns:
      an average color in Java's default sRGB color space, encoded as an int (0xAARRGGBB).
    • getFlags

      public int getFlags()
    • getShaderFor

      protected Shader getShaderFor(Environment env, Vector3f in)
      Description copied from class: SwitchShader
      This method has to be implemented by subclasses and defines the actual shader which shall be used depending on the environment and the ray direction.
      Specified by:
      getShaderFor in class SwitchShader
      Parameters:
      env - environment for which shading computations are to be performed
      in - given ray direction
      Returns:
      actual shader to use for shading computations
    • isTransparent

      public boolean isTransparent()
      Specified by:
      isTransparent in interface Shader
      Overrides:
      isTransparent in class SwitchShader
    • getGUIShader

      public Shader getGUIShader()
    • getRaytracerShader

      public Shader getRaytracerShader()
    • getRadiationShader

      public Shader getRadiationShader()
    • setGUIShader

      public void setGUIShader(Shader value)
    • getManageableType

      public ManageableType getManageableType()
    • setGuiShader

      public void setGuiShader(Shader value)
    • setRaytracerShader

      public void setRaytracerShader(Shader value)
    • setRadiationShader

      public void setRadiationShader(Shader value)
    • accept

      public void accept(ShaderVisitor visitor)