ShaderRoom
From VRwiki
Contents |
[edit]
Using shaders in XVR
This demo shows how it's possible using shaders inside an XVR script. It is shown a room with many gargoyles, each one drawn with a different shader. To simplify working, a single object has been used and translated in different position. The room and the semisphere on the ground uses shaders but they are incapsulated inside AAM file, we'll see on next tutorial what does it mean. Using shaders is a very simple operation:
- Load a shader;
- ...
- Start shader;
- Set shader parameters;
- Draw something;
- Stop shader;
Nothing more...
[edit]
Demo
Here you can see a reduced version of the demo where png texture are substituted with dds textures.
[edit]
Download
You can get the source code for this example here.
[edit]
