|
|
|
|
|
|
//weight *= sampleWeight; |
|
|
|
|
|
|
|
uint index = lightData.envIndex >> 1; |
|
|
|
|
|
|
|
|
|
|
|
//float2 positionNCD = ComputeNormalizedDeviceCoordinates(_Env2DCapturePositionWS[index] + R, _Env2DCaptureVP[index]); |
|
|
|
texCoord = positionNCD.xyy; |
|
|
|
|
|
|
|
float4 preLD = SampleEnv(lightLoopContext, lightData.envIndex, texCoord, iblMipLevel); |
|
|
|