NVidia CG Toolkit

From Rigs of Rods Wiki

Jump to: navigation, search

The nVidia Cg Toolkit is a compiler for .cg shaders, it allows shaders to be written using C-Style scripts that get compiled into asm for the GPU to use. It is currently at version 2.2 and the latest version is always available from the nVidia Cg website

Writing .cg shaders

If you want to learn .cg, nVidia has kindly released 4 books for free on their website that cover several topics using Cg.

You can view any of these books for free:

These books cover most topics that would be relevant when writing Cg shaders, and contain many techniques for writing better shaders.

Installing the Cg Toolkit

Since the Cg toolkit is already compiled by nVidia, there is no need to compile it yourself. You just need to install it and it will be ready to use.

To get the Cg toolkit all you have to do is download the lastest version from the nVidia Cg website and install it onto your computer, and it is ready to use.

Personal tools