Titania X3D Editor

Bring Colours to Your Life.

Titania v4.3.6

Bring Colours to Your Life.

X3D Reference

PackagedShader

PackagedShader

PackagedShader describes a single file that may contain a number of shaders and combined effects.

The PackagedShader node belongs to the Shaders component and its container field is shaders. It is available since X3D version 3.0 or later.

Hierarchy

* Derived from multiple interfaces.

Fields

SFNode [in, out] metadata NULL [X3DMetadataObject]

Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.

MFString [in, out] url [ ] [URI]

Input/Output field url.

SFBool [in] activate

Activate forces the shader to activate the contained objects.

SFBool [out] isSelected

IsSelected indicates this shader instance is selected for use by browser

SFBool [out] isValid

IsValid indicates whether current shader objects can be run as a shader program.

SFString [ ] language "" ["Cg"|"GLSL"|"HLSL"|...]

The language field indicates to the X3D player which shading language is used. The language field may be used to optionally determine the language type if no MIME-type information is available.

Hint

Recognized values include "CG" "GLSL" "HLSL" "FX"

See Also

Relates to Internationalization (i18n)

Description

Hint

  • PackagedShader contains IS/connect and field definitions.

Warning

  • PackagedShader can contain field declarations, but no CDATA section of plain-text source code.

Browser Compatibility

Titania X_ITE
no no

External Links

Cookies and other Technologies

By clicking »Accept« or continuing to use the site, you agree to the use of CREATE3000 and third-party cookies and other similar technologies to enhance your browsing experience, analyze and measure your engagement with our content, and provide more relevant ads on CREATE3000 websites and others. Learn more about cookies. You can withdraw your consent at any time.