2010年7月12日 星期一

Shader Special Concern Point

Shader Fog: http://randomchaosuk.blogspot.com/2007/07/shader-fog.html
In Shader 3.0 or higher, DirectX removed fog states: http://www.3dvia.com/forums/topic/how-to-use-fog-in-shader
SM3 Fog:http://xna-uk.net/blogs/randomchaos/archive/2007/10/15/generic-xna-sm3-fog.aspx
Fog Formulas:http://msdn.microsoft.com/en-us/library/bb324452%28VS.85%29.aspx

Texture Stage and Sampler States
A pixel shader completely replaces the pixel-blending functionality specified by the multi-texture blender including operations previously defined by the texture stage states. Texture sampling and filtering operations which were controlled by the standard texture stage states for minification, magnification, mip filtering, and the wrap addressing modes, can be initialized in shaders. The application is free to change these states without requiring the regeneration of the currently bound shader. Setting state can be made even easier if your shaders are designed within an effect.

沒有留言:

張貼留言