View Single Post
Old 25th August 2011, 20:14   #4
Major Dude
Join Date: Mar 2008
Location: Erlangen
Posts: 869
As a beginner, you won't need more than the basic syntax, how to declare variables etc. We have float, float2 (for x-y-coordinates such as uv), float3 (mainly for colours, i.e. red, green and blue), and float4.

Some elementary functions are useful such as length(x) which gives you the length of a vector; you can use trigonometric functions sin, cos, etc. with all types of variables.

For a complete list you may refer to the microsoft guide
Nitorami is offline   Reply With Quote