RealtimeShaders
 
 
 

Real-Time Shader Examples

This add-on shows various real-time shaders such as Effect shaders written with the HLSL, CGFX language and Hardware shaders written in C++. All shaders are available to load from the RenderTree view under the "Realtime\Softimage Examples" category.


SimpleShader_CGFX
Demonstrates how to write a simple vertex and texture Cg shader.


SimpleHWShader
Demonstrates how to write a simple hardware shader in C++.

Example Files

Location
Files
SimpleShader_CGFX.cgfx
HWShaderPlugin.cpp
SimpleHWShader.cpp

Running the Example

To run the SimpleShader_CGFX example

  1. Load the Data\Project\Scenes\SimpleShader_CGFX.scn file.
  2. A geometry should be displayed in an OpenGL view. Use the technique combo box to switch between the vertex and texture shader function.

To run the SimpleHWShader example

  1. Load the Data\Project\Scenes\SimpleHWShader.scn file.
  2. A geometry should be displayed in an OpenGL view.

Keywords

This example uses the following keywords:

Real-Time Realtime Shader Hardware C++ HLSL CGFX OpenGL DirectX