| 554 | } |
| 555 | |
| 556 | void 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 | |
| 572 | void Sky::BakeSecondPass(const TextureRef* _land_texture_ref) { |
| 573 | if (!cached) { |
no test coverage detected