Fix #32097: cycles window texture coordinate wrong, happened after 2.63.
This commit is contained in:
@@ -29,7 +29,7 @@ __device_inline float3 svm_background_offset(KernelGlobals *kg)
|
||||
__device_inline float3 svm_world_to_ndc(KernelGlobals *kg, ShaderData *sd, float3 P)
|
||||
{
|
||||
if(kernel_data.cam.type != CAMERA_PANORAMA) {
|
||||
if(sd->object != ~0)
|
||||
if(sd->object == ~0)
|
||||
P += svm_background_offset(kg);
|
||||
|
||||
Transform tfm = kernel_data.cam.worldtondc;
|
||||
|
Reference in New Issue
Block a user