MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / demo_envmap_init

Function demo_envmap_init

Examples/StereoKitCTest/demo_envmap.cpp:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15///////////////////////////////////////////
16
17void demo_envmap_init() {
18 envmap_oldlight = render_get_skylight();
19 envmap_oldtex = render_get_skytex();
20
21 log_info("load");
22 envmap_tex = tex_create_cubemap_file("old_depot.hdr");
23 tex_on_load(envmap_tex, [](tex_t t, void*) {
24 log_info("callback");
25 render_set_skylight(tex_get_cubemap_lighting(t));
26 render_set_skytex (t);
27 }, nullptr);
28}
29
30///////////////////////////////////////////
31

Callers

nothing calls this directly

Calls 8

render_get_skylightFunction · 0.85
render_get_skytexFunction · 0.85
log_infoFunction · 0.85
tex_create_cubemap_fileFunction · 0.85
tex_on_loadFunction · 0.85
render_set_skylightFunction · 0.85
tex_get_cubemap_lightingFunction · 0.85
render_set_skytexFunction · 0.85

Tested by

no test coverage detected