From 9e422a2b638921cf79ab6a3f4dcbb6d91ebdaa0d Mon Sep 17 00:00:00 2001 From: Robin Kertels Date: Mon, 11 Mar 2024 17:33:02 +0100 Subject: [PATCH] [d3d9] Fix default light Fixes the diffuse alpha and the direction. --- src/d3d9/d3d9_state.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d3d9/d3d9_state.h b/src/d3d9/d3d9_state.h index 8aeb23e30..2f2af56ad 100644 --- a/src/d3d9/d3d9_state.h +++ b/src/d3d9/d3d9_state.h @@ -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]