You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Use Math_TAU and deg2rad/rad2deg in more places and optimize code
This commit is contained in:
@@ -4877,7 +4877,7 @@ void RendererSceneRenderRD::_debug_sdfgi_probes(RID p_render_buffers, RD::DrawLi
|
||||
push_constant.band_power = 4;
|
||||
push_constant.sections_in_band = ((band_points / 2) - 1);
|
||||
push_constant.band_mask = band_points - 2;
|
||||
push_constant.section_arc = (Math_PI * 2.0) / float(push_constant.sections_in_band);
|
||||
push_constant.section_arc = Math_TAU / float(push_constant.sections_in_band);
|
||||
push_constant.y_mult = rb->sdfgi->y_mult;
|
||||
|
||||
uint32_t total_points = push_constant.sections_in_band * band_points;
|
||||
|
||||
Reference in New Issue
Block a user