[Bf-blender-cvs] [b8dd68c] master: Cycles: Fix equiangular textures after recent commit
Sergey Sharybin
noreply at git.blender.org
Thu Jan 15 17:22:09 CET 2015
Commit: b8dd68cfc401c04fbc272bd6efd9bd1ffbfe810c
Author: Sergey Sharybin
Date: Thu Jan 15 21:21:07 2015 +0500
Branches: master
https://developer.blender.org/rBb8dd68cfc401c04fbc272bd6efd9bd1ffbfe810c
Cycles: Fix equiangular textures after recent commit
Just wrong constant used, names are indeed too close to each other.
===================================================================
M intern/cycles/kernel/kernel_projection.h
===================================================================
diff --git a/intern/cycles/kernel/kernel_projection.h b/intern/cycles/kernel/kernel_projection.h
index ab63f46..bd18fd2 100644
--- a/intern/cycles/kernel/kernel_projection.h
+++ b/intern/cycles/kernel/kernel_projection.h
@@ -76,12 +76,12 @@ ccl_device float3 equirectangular_range_to_direction(float u, float v, float4 ra
ccl_device float2 direction_to_equirectangular(float3 dir)
{
- return direction_to_equirectangular_range(dir, make_float4(-M_2_PI_F, M_PI_F, -M_PI_F, M_PI_F));
+ return direction_to_equirectangular_range(dir, make_float4(-M_2PI_F, M_PI_F, -M_PI_F, M_PI_F));
}
ccl_device float3 equirectangular_to_direction(float u, float v)
{
- return equirectangular_range_to_direction(u, v, make_float4(-M_2_PI_F, M_PI_F, -M_PI_F, M_PI_F));
+ return equirectangular_range_to_direction(u, v, make_float4(-M_2PI_F, M_PI_F, -M_PI_F, M_PI_F));
}
/* Fisheye <-> Cartesian direction */
More information about the Bf-blender-cvs
mailing list