This is a repost from the old blog, since this is one of those interesting stuff, which weren’t big enough to warrant a sample. Working on my VTF tutorial, I came across the need to apply lighting to a terrain. For lighting, we need normals, of course, but I only had heightmaps available. When the [...]
In response to some people asking me how to start learning shader programming, I made a list of some resources that could prove helpful when learning HLSL: The Shader Series, found on creators.xna.com are a very good set of articles and samples, that explain the basic knowledge needed to understand and write shaders in HLSL. [...]