in cl kernel function GatherLightSamples
float4 radiance = 0.f;
it make radiance.w is 0.
this result in highlighting of the final pixel increases with the number of samples
other codes to add output in cl. eg: ShadeBackgroundImage
float4 v = make_float4(0.f, 0.f, 0.f, 1.f);
ShadeBackgroundEnvMap
float4 v = make_float4(0.f, 0.f, 0.f, 1.f);
in cl kernel function GatherLightSamples float4 radiance = 0.f; it make radiance.w is 0. this result in highlighting of the final pixel increases with the number of samples
other codes to add output in cl. eg: ShadeBackgroundImage float4 v = make_float4(0.f, 0.f, 0.f, 1.f); ShadeBackgroundEnvMap float4 v = make_float4(0.f, 0.f, 0.f, 1.f);