1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-29 10:24:10 +01:00

[d3d9] Fix default light

Fixes the diffuse alpha and the direction.
This commit is contained in:
Robin Kertels 2024-03-11 17:33:02 +01:00 committed by Joshie
parent 11db6d691c
commit 9e422a2b63

View File

@ -169,11 +169,11 @@ namespace dxvk {
constexpr D3DLIGHT9 DefaultLight = {
D3DLIGHT_DIRECTIONAL, // Type
{1.0f, 1.0f, 1.0f, 1.0f}, // Diffuse
{1.0f, 1.0f, 1.0f, 0.0f}, // Diffuse
{0.0f, 0.0f, 0.0f, 0.0f}, // Specular
{0.0f, 0.0f, 0.0f, 0.0f}, // Ambient
{0.0f, 0.0f, 0.0f}, // Position
{0.0f, 0.0f, 0.0f}, // Direction
{0.0f, 0.0f, 1.0f}, // Direction
0.0f, // Range
0.0f, // Falloff
0.0f, 0.0f, 0.0f, // Attenuations [constant, linear, quadratic]