XNA Creators Club Online

sample details

Custom Model Effect
Sample
submitted
2/19/2007

Description:

This sample shows how custom effects can be applied to a model using the XNA Content Pipeline.

Sample Overview

This sample demonstrates how to use a custom effect to render a model with a static environment cube map, creating a shiny, reflective surface. The sample uses two custom content pipeline processors. The first processor applies the environment mapping effect to the model during the content build process. The run-time code does not then have to do anything special to render using the custom effect, because the model will be loaded in automatically with the new effect set up and ready to use. The second custom content pipeline processor converts a regular 2D photograph into a cube map that can be used for the environment mapping.

downloads
Framework

GS 2.0

Vertex Shader Version

VS 1.1

Pixel Shader Version

PS 1.1

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