Difference between revisions of "ComposedShader"

From Web3D.org
Jump to: navigation, search
Line 1: Line 1:
 
* [[Node Reference]]
 
* [[Node Reference]]
 
==ComposedShader==
 
==ComposedShader==
 +
 +
Specification Link: [http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/shaders.html#ComposedShader ComposedShader]
  
 
<pre>
 
<pre>

Revision as of 09:37, 27 August 2015

ComposedShader

Specification Link: ComposedShader

ComposedShader : X3DShaderNode, X3DProgrammableShaderObject {
  SFNode   [in,out] metadata NULL [X3DMetadataObject]
  MFNode   [in,out] parts  []     [ShaderPart]
  SFBool   [out]    isSelected
  SFBool   [out]    isValid
  SFBool   [in]     activate
  SFString []       language  ""  

  # And any number of:
  fieldType []       fieldName
  fieldType [in]     fieldName
  fieldType [out]    fieldName
  fieldType [in,out] fieldName
}

The ComposedShader node defines a shader where the individual source files are not individually programmable. All access to the shading capabilities is defined through a single interface that applies to all parts.


EXAMPLE OpenGL Shading Language (GLSL)


The isValid field adds an additional semantic indicating whether the current shader parts can be linked together to form a complete valid shader program.


The activate field forces the shader to activate the contained objects. The conditions under which a activate may be required are described in the I.5 Event model section of the X3D specification.