 			}
 			else
 			{
-				color = tex2D(_diffuse, minVd.texCoord.x, minVd.texCoord.y);
-				tempf = tex2D(_illum, minVd.texCoord.x, minVd.texCoord.y);				
+				color = tex2D(tDiffuse, minVd.texCoord.x, minVd.texCoord.y);
+				tempf = tex2D(tIllum, minVd.texCoord.x, minVd.texCoord.y);				
 				color.x *= tempf.x + 1.0f - diffusePower;
 				color.y *= tempf.y + 1.0f - diffusePower;
 				color.z *= tempf.z + 1.0f - diffusePower;

	}
	else
	{
		cudaBindTextureToArray(_diffuse, obj.data.diffuse.data, _mapDesc);
		cudaBindTextureToArray(_illum, obj.data.illum.data, _mapDesc);
		cudaBindTextureToArray(_spec, obj.data.spec.data, _mapDesc);
		cudaBindTextureToArray(_normal, obj.data.normal.data, _mapDesc);

		draw<<< nBlocks( resolution(), nTHREADS_DRAW_KERNEL ), nTHREADS_DRAW_KERNEL >>>
		(

				intensity = powf(fmaxf(0.f, d_vecDot(tempv, minVd.normal)), 32.f); 
				if (intensity > 0.f)
				{
					tempf = tex2D(tSpec, minVd.texCoord.x, minVd.texCoord.y);
					color.x += diffusePower * intensity * tempf.x;
					color.y += diffusePower * intensity * tempf.y;
					color.z += diffusePower * intensity * tempf.z;
