From 293afcaccb40343d37cff97882b7b8132a820de4 Mon Sep 17 00:00:00 2001 From: Themaister Date: Tue, 30 Apr 2013 04:26:08 -0700 Subject: [PATCH] Updated Cg shaders (markdown) --- Cg-shaders.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cg-shaders.md b/Cg-shaders.md index 82a4f75..6879ce9 100644 --- a/Cg-shaders.md +++ b/Cg-shaders.md @@ -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