fixed the hitchy lighting

master
MitchellHansen 8 years ago
parent 73026bc65d
commit 1a66c1dad0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 KiB

After

Width:  |  Height:  |  Size: 369 KiB

@ -402,8 +402,8 @@ __kernel void raycaster(
pixel, pixel,
view_light( view_light(
voxel_color, voxel_color,
(convert_float3(voxel) ) - (float3)(lights[4], lights[5], lights[6]), (convert_float3(voxel) + face_position) - (float3)(lights[4], lights[5], lights[6]),
(convert_float3(voxel) ) - (*cam_pos), (convert_float3(voxel) + face_position) - (*cam_pos),
face_mask * voxel_step face_mask * voxel_step
) )
); );

Loading…
Cancel
Save