The Shader Viewer can be used to look through the scene and model shaders that come with the 3D Gamestudio. To start it just run the shadertest.c which you will find in the "projects\shadertest\"-folder.
The Shader Viewer automatically loads every shader addressed in mtlFX.c and mtlView.c with the following prefix:
////////////////////////////////////////////////////////////////////
//Shader Name: XXX
//Material Name: mtl_xxx
//Standard Model: xxx.mdl
//Variable1: var1
//Variable2: var2
//Variable3: Not used
//Variable4: Not used
The Shader Name may consist of a maximum of 24 characters and will be displayed in the Shader Panel. The Material Name must match the existing material identifier. The Standard Model will be loaded when a new shader is selected and must exist in the shadertest-directory. Already included are two models: marine.mdl & stones.mdl. To change shader-parameters at runtime, the Shader Panel also offers 4 sliders for the scene shader as well as for the model shader. To give a hint what the parameters are for they can be named by Variable1 to Variable4. Within the model shader, the variables are addressed by the vecSkill41 vector and within the scene shaders through the vecSkill1 vector.
|
|
General Stuff Frames/Second - shows the actual fps which can be affected by the selected shaders |
|
Shader Scene Shader - Scroll through the scene shader library or load your own scene shader |
|
Model Open - Load your own model entity |
|
Light + / - - Adds/removes a dynamic light |
All Panels
To reposition a panel just press the left mouse button over the button in the upper left corner.
Additional help
In the upper middle part of the window you will always find some additional information about what you are pointing at.
Navigation
To rotate the model entity, press the right mouse-button.
To zoom in or out use the mouse-wheel.