Compartir a través de


Shader Designer Examples

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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

Title Description
How to: Create a Basic Color Shader Demonstrates a shader that applies a constant color to an object.
How to: Create a Basic Lambert Shader Demonstrates a shader that applies the classic Lambert lighting model to an object.
How to: Create a Basic Phong Shader Demonstrates a shader that applies the classic Phong lighting model to an object.
How to: Create a Basic Texture Shader Demonstrates a shader that applies a texture to an object.
How to: Create a Grayscale Texture Shader Demonstrates a shader that converts a texture to grayscale during rendering and applies it to an object.
How to: Create a Geometry-Based Gradient Shader Demonstrates 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 Ball Demonstrates how to combine shader techniques and texture resources to create a realistic billiard ball shader.
How to: Export a Shader Explains how to export a DGSL shader in a format that your app can use.