Lighting still looks horrible, but whatever for now
This commit is contained in:
@@ -31,5 +31,8 @@ float4 fragmentMain(in FragmentParameter params) : SV_Target
|
||||
uint lightIndex = pLightCullingData.lightIndexList[startOffset + i];
|
||||
result += pLightEnv.pointLights[lightIndex].illuminate(lightingParams, brdf);
|
||||
}
|
||||
return float4(result, 1.0f);
|
||||
result += brdf.evaluateAmbient();
|
||||
result = result / (result + float3(1.0));
|
||||
float3 gammaCorrected = pow(result, float3(1.0/2.2));
|
||||
return float4(gammaCorrected, 1.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user