Writing Custom Shaders
From Multiverse
For advanced graphics effects, you can write your own pixel and vertex shaders in the Cg or HLSL shader languages. You can then add these shaders to your asset repository, to be distributed as other assets.
See Vertex and Fragment Programs for more information.
Other references:
[edit]
NVIDIA shader development tool
The NVIDIA Cg Toolkit includes a CG complier for shader code. It's a good idea to try compiling your shader code with this tool before you actually try it in Multiverse. Here's how to do it:
- Download and install the NVIDIA CG Toolkit.
- Open a command prompt window and "cd" to the folder containing your shader code.
- Run the program "cgc" on your shader code and check for errors.
See Troubleshooting Shaders for an example of using the Cg Toolkit to check shader syntax.
