Top "Cg" questions

Cg is a high-level shading language developed by Nvidia.

Vertex shader vs Fragment Shader

I've read some tutorials regarding Cg, yet one thing is not quite clear to me. What exactly is the difference …

opengl cg fragment-shader vertex-shader
Include Headers from added frameworks on Xcode

I want to work with some frameworks like glew and cg so i manually added the needed frameworks to my …

xcode macos frameworks glew cg
how to set a boolean property in unity3d CGprogram shader?

I am writing a shader for unity3d and I want to specify the properties of the shader in i.…

opengl unity3d shader cg
CoreGraphics for retina display

I am using the following code to perform some manipulations on the image that I loaded, but I find that …

iphone core-graphics retina-display cg
CG: Specify a variable not to be interpolated between vertex and fragment shader

I'm using GC for writing shaders inside Unity3D. I'm using vertex colors attributes for passing some parameters to the …

unity3d shader interpolation cg
Screen coordinates in fragment shader

In a fragment shader like the below: Shader "ColorReplacement" { Properties { _MainTex ("Greyscale (R) Alpha (A)", 2D) = "white" {} } SubShader { ZTest LEqual …

unity3d shader fragment-shader vertex-shader cg
How to get full list of Unity shader properties

I am quite new to shaders and have been searching for a full list of Unity shader properties. I haven't …

unity3d shader unity5 cg
what are passes and multiple shader passes and their private variables

I know that multi pass rendering is about rendering separate parts of the scene and combining them into on image …

opengl unity3d glsl shader cg
How to write a Unity Shader that respects sorting layers?

I want to sort my Sprites using Unitys sorting Layers. I attached a custom Shader to one of my Sprites. …

unity3d shader cg unity3d-2dtools
Transform Normal and Tangent from Object space to World space?

As to correctly transform the Normal (which is a direction not a position) from Object space to World space, we …

matrix shader game-engine hlsl cg