Updated BasicEffect (markdown)
Родитель
6b1164a1d2
Коммит
6b46ece9a3
|
@ -47,11 +47,11 @@ This effect requires ``SV_Position``, ``NORMAL`` if lighting is enabled (``Effec
|
|||
|
||||
* **DisableSpecular**: Disables the specular lighting for the effect. Sets the color to black (0,0,0) and power to 1.
|
||||
|
||||
* **SetAlpha**: Sets the alpha (transparency) of the effect. Defaults to 1 (fully opaque).
|
||||
* **SetAlpha**: Sets the alpha (transparency) of the effect. Defaults to 1 (fully opaque). This value is also used for binning opaque vs. transparent geometry.
|
||||
|
||||
* **SetColorAndAlpha**: Sets the diffuse color of the effect and the alpha (transparency).
|
||||
|
||||
* **SetTexture**: Associates a texture and sampler descriptor with the effect. Must have used ``EffectFlags::Texture`` to enable texturing.
|
||||
* **SetTexture**: Associates a texture and sampler descriptor with the effect. Must have used ``EffectFlags::Texture`` to enable texturing. Can optionally include an alpha channel as well.
|
||||
|
||||
> Remember the caller is responsible for setting the correct texture descriptor heap and sampler descriptor heap at render time when the effect is applied via ``SetDescriptorHeaps``. See [[Effects]] for more information.
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче