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

Method SetColorTexture

Source/Graphics/terrain.cpp:1038–1042  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1036}
1037
1038void Terrain::SetColorTexture(const char *path) {
1039 color_path = path;
1040 color_bitmap = Engine::Instance()->GetAssetManager()->LoadSync<ImageSampler>(path);
1041 color_texture_ref = Engine::Instance()->GetAssetManager()->LoadSync<TextureAsset>(path, PX_SRGB, 0x0);
1042}
1043
1044void Terrain::SetWeightTexture(const char *path) {
1045 weight_map_path = path;

Callers 2

TerrainObjectMethod · 0.80

Calls 1

GetAssetManagerMethod · 0.80

Tested by

no test coverage detected