Class ProgramShader

All Implemented Interfaces:
X3DNode, ProgramShader, X3DShaderNode, X3DAppearanceChildNode

public class ProgramShader extends X3DConcreteNode implements ProgramShader
ProgramShader contains no field declarations and no plain-text source code.

X3D node tooltip: (X3D version 3.1 or later) [X3DShaderNode] ProgramShader defines a shader that consists of one or more individually programmable, self-contained pieces. ProgramShader contains IS/connect and programs [ShaderProgram] nodes.
  • Warning: ProgramShader contains no field declarations and no plain-text CDATA block source code.
  • Hint: apply default containerField='shaders' when parent node is Appearance.

Package hint: This org.web3d.x3d.jsail concrete class is used for implementing a standalone X3D object as a Plain Old Java Object (POJO). If you are writing Java code for use inside an X3D Script node, compile separate code using only the org.web3d.x3d.sai package instead.
See Also:
  • Field Details

    • LANGUAGE_CG

      public static final String LANGUAGE_CG
      Tooltip: nVidia Cg shading language. SFString field named language with X3DUOM simpleType shaderLanguageValues and with X3DUOM baseType xs:NMTOKEN can equal this value "Cg" (Java syntax) or Cg (XML syntax).
      See Also:
    • LANGUAGE_GLSL

      public static final String LANGUAGE_GLSL
      Tooltip: OpenGL shading language (GLSL). SFString field named language with X3DUOM simpleType shaderLanguageValues and with X3DUOM baseType xs:NMTOKEN can equal this value "GLSL" (Java syntax) or GLSL (XML syntax).
      See Also:
    • LANGUAGE_HLSL

      public static final String LANGUAGE_HLSL
      Tooltip: Microsoft High Level Shading Language (HLSL). SFString field named language with X3DUOM simpleType shaderLanguageValues and with X3DUOM baseType xs:NMTOKEN can equal this value "HLSL" (Java syntax) or HLSL (XML syntax).
      See Also:
    • NAME

      public static final String NAME
      String constant NAME provides name of this element: ProgramShader.
      See Also:
    • COMPONENT

      public static final String COMPONENT
      String constant COMPONENT defines X3D component for the ProgramShader element: Shaders
      See Also:
    • LEVEL

      public static final int LEVEL
      Integer constant LEVEL provides default X3D Shaders component level for this element: 1
      See Also:
    • IS_DEFAULT_VALUE

      public static final IS IS_DEFAULT_VALUE
      SFNode field named IS has default value null (Java syntax) or NULL (XML syntax).
    • LANGUAGE_DEFAULT_VALUE

      public static final String LANGUAGE_DEFAULT_VALUE
      SFString field named language has default value equal to an empty string.
      See Also:
    • METADATA_DEFAULT_VALUE

      public static final X3DMetadataObject METADATA_DEFAULT_VALUE
      SFNode field named metadata has default value null (Java syntax) or NULL (XML syntax).
    • containerField_DEFAULT_VALUE

      public static final String containerField_DEFAULT_VALUE
      containerField describes typical field relationship of a node to its parent. Usage is not ordinarily needed when using this API, default value is provided for informational purposes.
      See Also:
    • toField_ACTIVATE

      public static final String toField_ACTIVATE
      toField ROUTE name for SFBool field named activate.
      See Also:
    • fromField_IS

      public static final String fromField_IS
      fromField ROUTE name for SFNode field named IS.
      See Also:
    • fromField_ISSELECTED

      public static final String fromField_ISSELECTED
      fromField ROUTE name for SFBool field named isSelected.
      See Also:
    • fromField_ISVALID

      public static final String fromField_ISVALID
      fromField ROUTE name for SFBool field named isValid.
      See Also:
    • fromField_METADATA

      public static final String fromField_METADATA
      fromField ROUTE name for SFNode field named metadata.
      See Also:
    • toField_METADATA

      public static final String toField_METADATA
      toField ROUTE name for SFNode field named metadata.
      See Also:
    • fromField_PROGRAMS

      public static final String fromField_PROGRAMS
      fromField ROUTE name for MFNode field named programs.
      See Also:
    • toField_PROGRAMS

      public static final String toField_PROGRAMS
      toField ROUTE name for MFNode field named programs.
      See Also:
  • Constructor Details

    • ProgramShader

      public ProgramShader()
      Constructor for ProgramShader to initialize member variables with default values.
    • ProgramShader

      public ProgramShader(String DEFlabel)
      Utility constructor that assigns DEF label after initializing member variables with default values.
      Parameters:
      DEFlabel - unique DEF name for this X3D node
  • Method Details