Shader Special Concern Point

Shader Fog:
In Shader 3.0 or higher, DirectX removed fog states:
SM3 Fog:
Fog Formulas:

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.


Popular posts from this blog

Fast subsurface scattering

Physically-Based Rendering in WebGL

tex2D vs. tex2Dproj