MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / add

Method add

ogsr_engine/Layers/xrRender/LightTrack.cpp:44–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void CROS_impl::add(light* source)
45{
46 // Search
47 for (auto& I : track)
48 if (source == I.source)
49 {
50 I.frame_touched = Device.dwFrame;
51 return;
52 }
53
54 // Register _new_
55 auto& L = track.emplace_back();
56 L.frame_touched = Device.dwFrame;
57 L.source = source;
58 L.cache.verts[0].set(0, 0, 0);
59 L.cache.verts[1].set(0, 0, 0);
60 L.cache.verts[2].set(0, 0, 0);
61 L.test = 0.f;
62 L.energy = 0.f;
63}
64
65IC bool pred_energy(const CROS_impl::Light& L1, const CROS_impl::Light& L2) { return L1.energy > L2.energy; }
66//////////////////////////////////////////////////////////////////////////

Callers 15

render_itemsMethod · 0.45
CalculateLightingMethod · 0.45
draw_rainMethod · 0.45
calculateMethod · 0.45
u_calc_tc_duality_ssMethod · 0.45
compute_caster_modelMethod · 0.45
Build_filter_kernelMethod · 0.45
setupMethod · 0.45
add_wallmark_internalMethod · 0.45
RenderWallmarkMethod · 0.45
updateMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected