Skip to content

SpriteBatch Shader

Simon (darkside) Jackson edited this page Aug 21, 2020 · 7 revisions

SpriteBatch Shader (ARCHIVED)

Area Submitted Type
Games: 2D Graphics 8/15/2008 Tool

Note: This item is no longer supported. This effect code is now provided as part of the Stock Effects Sample for XNA Game Studio 4.0.

Description

The SpriteBatch shader represents the source code for the drawing functionality of the SpriteBatch object in the XNA Framework. It is provided as HLSL source code in a .fx file, along with an instructional document that describes the workings of the shader and how you can integrate it into your XNA Game Studio project.

Utility Overview

This HLSL code is provided for educational purposes. It may be a useful starting point when you create more advanced shaders of your own. You can achieve many advanced graphical effects by using SpriteBatch alongside a custom pixel shader without needing to change the vertex shader. The vertex shader is heavily optimized for both Windows and Xbox 360 and may be more difficult to extend.

All content and source code downloaded from this page is bound to the Microsoft Permissive License (Ms-PL).

Download Size Description
SpriteBatchShader_ARCHIVE_2_0 0.02MB Source code for the SpriteBatch Shader (XNA Game Studio 2.0, Archived).
SpriteBatchShader_ARCHIVE_2_0.zip 0.02MB Source code for the SpriteBatch Shader (XNA Game Studio 2.0, Archived).
Clone this wiki locally