fixed the hitchy lighting
This commit is contained in:
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
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user