Shader Definition and Parser Examples

 
 
 

The following examples are installed with Softimage and are available from the XSISDK workgroup:

Example

Implementation Language

Description

Color Sampler

  • C++

  • JScript

These examples were ported from the SPDL-based Color Sampler Lightmap shader. They demonstrate how to create a custom lightmap output parameter, and how to create a property page widget that allows the user to specify a texture space id.

Environment Blur

  • C#

  • JScript

These examples were ported from the SPDL-based Environment Blur shader. It demonstrates how to create a property page widget that allows the user to select a shader.

Fast Volume Effects

  • VBScript

  • JScript

These examples were ported from the SPDL-based Fast Volume Effects shader. It demonstrates how to define structure and array parameters and how to modify the property page layout.

Model Map

  • Python

  • JScript

These examples were ported from the SPDL-based Model Map shader. It demonstrates how to create property page widgets that allow the user to specify a texture space id and a CAV. They also demonstrate how to define a drop-down list of values.

Custom Shader Parser

  • JScript

This example shows how to create a self-installing custom shader language parser in JScript. A number of parseable file definitions (with the .bck and .pck extensions) are included to demonstrate how the parser system works, both valid and invalid.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License