Skip to content

Commit 86d6cdd

Browse files
committed
Fix normal at rendering circular points.
1 parent a55d3b2 commit 86d6cdd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/effects/circular_points.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ fragment:
2222
if (sphere_radius_square > 1.0f) discard;
2323
2424
material: |
25-
m.normal.xy = circular_points_unit_coord;
26-
m.normal.z = sqrt(1.0f - dot(circular_points_unit_coord, circular_points_unit_coord));
25+
m.normal.xz = circular_points_unit_coord;
26+
m.normal.y = -sqrt(1.0f - dot(circular_points_unit_coord, circular_points_unit_coord));

src/rpcore/gui/debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ AsyncTask::DoneStatus Debugger::update_stats(GenericAsyncTask* task, void* user_
350350
const LPoint3& camera_global_pos = camera.get_pos(render);
351351

352352
debugger->debug_lines[4]->set_text(fmt::format(
353-
"Time: {} ({:1.3f}) | Sun {:0.2f} {:0.2f} {:0.2f} | X {:3.1f} Y {:3.1f} Z {:3.1f} | {:2d} tasks | scheduled: {:2d}",
353+
"Time: {} ({:1.3f}) | Sun {:0.2f} {:0.2f} {:0.2f} | X {:4.2f} Y {:4.2f} Z {:4.2f} | {:2d} tasks | scheduled: {:2d}",
354354

355355
pipeline->get_daytime_mgr()->get_formatted_time(),
356356
pipeline->get_daytime_mgr()->get_time(),

0 commit comments

Comments
 (0)