MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / BakeFirstPass

Method BakeFirstPass

Source/Graphics/sky.cpp:556–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556void Sky::BakeFirstPass() {
557 if (load_resources_queued) {
558 LoadResources();
559 load_resources_queued = false;
560 }
561 if (!cached) {
562 if (framebuffer == INVALID_FRAMEBUFFER) {
563 Graphics::Instance()->genFramebuffers(&framebuffer, "bake_sky_1");
564 Graphics::Instance()->genFramebuffers(&framebuffer2, "bake_sky_2");
565 }
566 displaying_YCOCG_sky = false;
567 RenderCubeMap(0, NULL);
568 ProcessCubeMap(cube_map_texture_ref, spec_cube_map_texture_ref, framebuffer, framebuffer2);
569 }
570}
571
572void Sky::BakeSecondPass(const TextureRef* _land_texture_ref) {
573 if (!cached) {

Callers 3

GLInitMethod · 0.80
LoadLevelMethod · 0.80
DrawMethod · 0.80

Calls 2

ProcessCubeMapFunction · 0.85
genFramebuffersMethod · 0.80

Tested by

no test coverage detected