diff --git a/assets/screenshot1.png b/assets/screenshot1.png index 6150dd1..a7646bb 100644 Binary files a/assets/screenshot1.png and b/assets/screenshot1.png differ diff --git a/kernels/ray_caster_kernel.cl b/kernels/ray_caster_kernel.cl index 235e255..da8dc4a 100644 --- a/kernels/ray_caster_kernel.cl +++ b/kernels/ray_caster_kernel.cl @@ -402,8 +402,8 @@ __kernel void raycaster( pixel, view_light( voxel_color, - (convert_float3(voxel) ) - (float3)(lights[4], lights[5], lights[6]), - (convert_float3(voxel) ) - (*cam_pos), + (convert_float3(voxel) + face_position) - (float3)(lights[4], lights[5], lights[6]), + (convert_float3(voxel) + face_position) - (*cam_pos), face_mask * voxel_step ) );