XNA UK User Group

A helping hand for bedroom coders throughout the land.
in

Upcoming Events

Read our Events forum for details of upcoming events. Meet real people!

zip Fogging Sample

Downloads: 1,060 File Size: 251.8kB
Posted By: leaf Views: 1,054
Date Added: 07-18-2007

 

This sample shows a basic implementation of fogging without using the fixed function fogging render states. By avoiding the fixed function render states the fogging will work with Shader Model 3.0 and the Xbox 360.

Use the gamepad thumbsticks to control the camera, button Y to reset. Use the dpad to edit some of the shader parameters.

The building model and texture are from the Microsoft Racing Game starter kit

Edit: Updated to fix a bug in calculating the camera position.
 

Filed under: ,

Comments

 

Nemo Krad said:

Leaf, Great work, it does exactly what it says on the tin :) Have you ran it on the 360 to see if it works there?
07-19-2007 1:29 PM

Add Comment

(required) 
(required)
(optional)
(required) 
Add