XNA Creators Club Online

détails de l’échantillon

Shadow Series 1: Basic Shadow Mapping
Échantillon
envoyé
29/08/2008
Description:

This sample shows you how to implement basic shadow mapping from a directional light where the view and projection of the shadow map adapt to the viewing frustum of the viewer's camera. You can use the sample to shadow a large scene with multiple dynamic objects that cast dynamic shadows.

Sample Overview

Shadow mapping refers to a shadowing technique where you can use a texture to store an object's distance from a light. When you render the scene, you can then use the distance from the light to determine whether the pixel being rendered is behind the value stored in the shadow map.


téléchargements
Framework

GS 2.0

Version Vertex Shader

VS 2.0

Version Pixel Shader

PS 2.0

var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG