XNA Creators Club Online

detalles de la muestra

Sprite Effects
Muestra

Description:

This sample shows how shaders can be used to implement special effects when drawing 2D graphics with SpriteBatch. It uses two custom content pipeline processors to prepare the sprite textures in special ways.

Sample Overview

The sample includes five different rendering techniques. To switch to the next technique, press the A button on your gamepad, or SPACEBAR on your keyboard.

The first custom content pipeline processor merges color and alpha information from two separate source files into a single texture. This allows the alpha data to be drawn as a simple grayscale image, which can be convenient if you are using a paint program that does not properly support images with embedded alpha channels.

The second custom processor converts an image containing grayscale height values into a normal-map texture.

descargas
Estructura

GS 2.0

Versión de Vertex Shader

VS 1.1

Versión de Pixel Shader

PS 2.0

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