Minor fixes and adjustments
This commit is contained in:
@@ -197,7 +197,7 @@ void main() {
|
||||
for (int i = 0; i < _DirectionalLightCount; i++) {
|
||||
Directional_Light light = _DirectionalLights[i];
|
||||
|
||||
vec3 lightDirectionVS = normalize((_MatrixWStoVS * vec4(light.directionWS, 0.0)).xyz);
|
||||
vec3 lightDirectionVS = normalize((_MatrixWStoVS * vec4(-light.directionWS, 0.0)).xyz);
|
||||
vec3 incomingRadiance = light.color;
|
||||
|
||||
outgoingRadiance += lightOutgoingRadiance(
|
||||
|
||||
Reference in New Issue
Block a user