Cycles: Calculate face normal on the fly.
Instead of pre-calculation and storage, we now calculate the face normal during render. This gives a small slowdown (~1%) but decreases memory usage, which is especially important for GPUs, where you have limited VRAM. Part of my GSoC 2014.
This commit is contained in:
@@ -36,7 +36,7 @@ KERNEL_TEX(float4, texture_float4, __objects)
|
||||
KERNEL_TEX(float4, texture_float4, __objects_vector)
|
||||
|
||||
/* triangles */
|
||||
KERNEL_TEX(float4, texture_float4, __tri_normal)
|
||||
KERNEL_TEX(float, texture_float, __tri_shader)
|
||||
KERNEL_TEX(float4, texture_float4, __tri_vnormal)
|
||||
KERNEL_TEX(float4, texture_float4, __tri_vindex)
|
||||
KERNEL_TEX(float4, texture_float4, __tri_verts)
|
||||
|
Reference in New Issue
Block a user