Shader Designer Examples

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Shader Designer Examples.

The articles in this section of the documentation contain examples that demonstrate how you can use the Shader Designer to create various graphics effects.

How to: Create a Basic Color ShaderDemonstrates a shader that applies a constant color to an object.
How to: Create a Basic Lambert ShaderDemonstrates a shader that applies the classic Lambert lighting model to an object.
How to: Create a Basic Phong ShaderDemonstrates a shader that applies the classic Phong lighting model to an object.
How to: Create a Basic Texture ShaderDemonstrates a shader that applies a texture to an object.
How to: Create a Grayscale Texture ShaderDemonstrates a shader that converts a texture to grayscale during rendering and applies it to an object.
How to: Create a Geometry-Based Gradient ShaderDemonstrates a shader that modulates a color based on the geometry of an object and applies it to the object.
Walkthrough: Creating a Realistic 3-D Billiard BallDemonstrates how to combine shader techniques and texture resources to create a realistic billiard ball shader.
How to: Export a ShaderExplains how to export a DGSL shader in a format that your app can use.
Show: