From a0505450d281841a3e6d25a7510c98b58ef92281 Mon Sep 17 00:00:00 2001 From: Anthony LaTorre Date: Thu, 2 Jun 2011 15:45:05 -0400 Subject: material/surface codes or color are packed into the fourth byte of the triangle data texture depending on the color keyword passed to Geometry.build() --- src/kernel.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel.cu') diff --git a/src/kernel.cu b/src/kernel.cu index a020180..ead08da 100644 --- a/src/kernel.cu +++ b/src/kernel.cu @@ -190,7 +190,7 @@ __global__ void ray_trace(int nthreads, float3 *origins, float3 *directions, int float3 v1 = make_float3(tex1Dfetch(vertices, triangle_data.y)); float3 v2 = make_float3(tex1Dfetch(vertices, triangle_data.z)); - *(pixels+idx) = get_color(direction, v0, v1, v2); + *(pixels+idx) = get_color(direction, v0, v1, v2, triangle_data.w); } } // ray_trace -- cgit