Updated Cg shaders (markdown)
parent
5145ea194f
commit
293afcaccb
|
@ -1,5 +1,6 @@
|
|||
## Purpose
|
||||
Cg shaders is a spec from nVidia. It has the great advantage that shaders written in Cg are compatible with both OpenGL and Direct3D. It is also compatible with PlayStation 3 as well. They are also compatible with basic HLSL if some considerations are taken into account. They can even be automatically be compiled into [[GLSL shaders]], which makes Cg shaders a true "write once, run everywhere" shader format.
|
||||
Cg shaders is a spec from nVidia. It has the great advantage that shaders written in Cg are compatible with both OpenGL and Direct3D. It is also compatible with PlayStation 3 as well. They are also compatible with basic HLSL if some considerations are taken into account. They can even be automatically compiled into [[GLSL shaders]], which makes Cg shaders a true "write once, run everywhere" shader format.
|
||||
We encourage new shaders targeting RetroArch to be written in this format.
|
||||
|
||||
### Example Cg shader
|
||||
void main_vertex
|
||||
|
|
Loading…
Reference in New Issue