-
-
Notifications
You must be signed in to change notification settings - Fork 102
Shader Series 2 Textures and Colors
Area | Submitted | Type |
---|---|---|
Games: Graphics, Games: Shaders | 5/24/2007 | Code Sample |
This sample shows how to combine texture operations with mathematical color operations to blend colors and achieve interesting lighting effects.
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.
-
Shader Series: Introduction (Article)
All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).
Download | Size | Description |
---|---|---|
TexturesAndColorsSample_4_0 | 0.46MB | Source code and assets for the Shader Series 2: Textures & Colors Sample (XNA Game Studio 4.0). |
TexturesAndColorsSample_4_0.zip | 0.46MB | Source code and assets for the Shader Series 2: Textures & Colors Sample (XNA Game Studio 4.0). |