Node: ComposedShader

X3D: 3.3
Component: Shaders
Status:
experimental

Quick Links

➨ Fields

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.

HTML Encoding and Default Values

<ComposedShader fields='x3dom.nodeTypes.Field' language='""' metadata='X3DMetadataObject' parts='x3dom.nodeTypes.ShaderPart' ></ComposedShader>

Inheritance


Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
fields MFNode Core/Field Contains all fields of shader parts.
language SFString "" ["Cg"|"GLSL"|"HLSL"|...] X3DShaderNode The language field is used to indicate to the browser which shading language is used for the source file(s). This field may be used as a hint for the browser if the shading language is not immediately determinable from the source (e.g., a generic MIME type of text/plain is returned). A browser may use this field for determining which node instance will be selected and to ignore languages that it is not capable of supporting. Three basic language types are defined for this specification and others may be optionally supported by a browser.
metadata SFNode X3DMetadataObject Core/X3DNode Field to add metadata information
parts MFNode ShaderPart List of shader parts.