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

Method LoadMinimal

Source/Graphics/terrain.cpp:635–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635void Terrain::LoadMinimal(const char *name, const std::string &model_override) {
636 minimal = true;
637 heightmap_.LoadData(name, HeightmapImage::DOWNSAMPLED);
638 CalculateMinimalTerrain();
639 CalculatePatches();
640 terrain_texture_size = heightmap_.width() / Graphics::Instance()->config_.texture_reduction_factor();
641}
642
643void Terrain::GetShaderNames(std::map<std::string, int> &preload_shaders) {
644 preload_shaders[shader] = 0;

Callers 1

TerrainObjectMethod · 0.80

Calls 3

LoadDataMethod · 0.80
widthMethod · 0.45

Tested by

no test coverage detected