Implement quick shader switch hotkeys
This commit is contained in:
@@ -34,10 +34,10 @@ FragmentOutput fragmentMain(in FragmentParameter params)
|
||||
}
|
||||
for(uint i = 0; i < pLightEnv.numPointLights; ++i)
|
||||
{
|
||||
//uint lightIndex = pLightCullingData.lightIndexList[startOffset + i];
|
||||
result += pLightEnv.pointLights[i].illuminate(lightingParams, brdf);
|
||||
uint lightIndex = pLightCullingData.lightIndexList[startOffset + i];
|
||||
result += pLightEnv.pointLights[lightIndex].illuminate(lightingParams, brdf);
|
||||
}
|
||||
//result += brdf.evaluateAmbient();
|
||||
result += brdf.evaluateAmbient();
|
||||
// gamma correction
|
||||
result = result / (result + float3(1.0));
|
||||
result = pow(result, float3(1.0/2.2));
|
||||
@@ -46,3 +46,4 @@ FragmentOutput fragmentMain(in FragmentParameter params)
|
||||
output.meshletId = params.meshletId;
|
||||
return output;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user