from tim: no need for mip for the diffuse contribution. the prefilter handles that

This commit is contained in:
Azaezel 2019-03-24 17:40:19 -05:00
parent ead78ec588
commit 5165d9c868

View file

@ -99,8 +99,7 @@ float3 iblBoxDiffuse(Surface surface, ProbeData probe)
{
float3 dir = boxProject(surface, probe);
float lod = surface.roughness*cubeMips;
float3 color = TORQUE_TEXCUBEARRAYLOD(irradianceCubemapAR, dir, probe.probeIdx, lod).xyz;
float3 color = TORQUE_TEXCUBEARRAYLOD(irradianceCubemapAR, dir, probe.probeIdx,0).xyz;
if (probe.contribution>0)
return color*probe.contribution;
else
@ -131,8 +130,7 @@ float3 iblBoxSpecular(Surface surface, ProbeData probe)
float3 iblSkylightDiffuse(Surface surface, ProbeData probe)
{
float lod = surface.roughness*cubeMips;
float3 color = TORQUE_TEXCUBEARRAYLOD(irradianceCubemapAR, surface.R, probe.probeIdx, lod).xyz;
float3 color = TORQUE_TEXCUBEARRAYLOD(irradianceCubemapAR, surface.R, probe.probeIdx, 0).xyz;
return color;
}