Various debug to check lighting
This commit is contained in:
1 parent
581656568b
commit
446670bd29
13 files changed
+222
-70
No files matched your search
@@ -12,11 +12,11 @@ float4 main(Input input) : SV_Target0
|
||||
float3 normal = normalize(input.WorldNormal);
|
||||
|
||||
// Initial ambient component
|
||||
float3 result = input.Color.rgb * LightColor * AmbientIntensity;
|
||||
float3 result = input.Color.rgb * GlobalLightColor * GlobalAmbientIntensity;
|
||||
|
||||
// Directional light contribution
|
||||
float ndotl = max(dot(normal, -LightDirection), 0.0);
|
||||
result += input.Color.rgb * LightColor * ndotl;
|
||||
float ndotl = max(dot(normal, -GlobalLightDirection), 0.0);
|
||||
result += input.Color.rgb * GlobalLightColor * ndotl;
|
||||
|
||||
// Point lights
|
||||
if (ActiveLightCount > 0)
|
||||
|
||||
Reference in new issue
Block a user