118. Shader Series 2: Textures & Colors

Description:
This sample shows how to combine texture operations with mathematical color operations to blend colors and achieve interesting lighting effects.


Sample Overview
New features include HLSL textures and samplers, uniform boolean parameters to HLSL functions, and vertex colors.

The sample initially shows a common usage scenario for combining lighting, vertex color, and texture colors to create the final color output. Cycling through the available techniques will then show the individual elements, simple combinations, and finally alternative combinations of all three.


The most important lesson of this sample is that the manner in which you come up with the output color for a pixel is completely arbitrary. You may use colors derived from any number of sources and combine them any way you wish to achieve the effect you desire.






Downloads