You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SetMode: Sets which debug shader to use. Defaults to Mode_Default:
Mode_Default
Hemispherical ambient lighting
Mode_Normals
RGB normals
Mode_Tangents
RGB tangents
Mode_BiTangents
RGB bi-tangents (a.k.a. binormals)
SetAlpha: Sets the alpha (transparency) of the effect. Defaults to 1 (fully opaque).
SetHemisphericalAmbientColor: The default mode uses a simple hemispherical ambient lighting so you can see the object with some 3D clues regardless of overall scene lighting. It defaults to using White to Black. This property can set different upper/lower colors.
SetVertexColorEnabled: Enables per-vertex color. Defaults to false. Modifying this setting requires recreating associated input layouts, and enabling it requires COLOR.
SetBiasedVertexNormals: Enables support for compressed vertex normals which require *2 - 1 biasing at runtime such as DXGI_FORMAT_R10G10B10A2_UNORM.
SetInstancingEnabled: Enables support for per-vertex instancing by adding a per-vertex XMFLOAT3X4 transform matrix.
Exceptions
The ctor can throw std::bad_alloc or std::runtime_error if the Direct3D feature level is lower than 10.0.
The method SetMode can throw std::invalid_argument.
The other property methods of this implementation do not throw C++ exceptions.
Feature Level Notes
This effect uses Shader Model 4.0 so requires Direct3D hardware feature level 10.0 or greater.