auto-git:
[change] src/rendering/terrain-layer-material.ts
This commit is contained in:
@@ -62,11 +62,11 @@ export function getFallbackTerrainLayerTexture(): Texture {
|
||||
|
||||
export function getTerrainLayerTexture(
|
||||
material: MaterialDef | null,
|
||||
textureLookup: (material: MaterialDef) => Texture
|
||||
textureLookup: (material: MaterialDef) => Texture | null
|
||||
): Texture {
|
||||
return material === null
|
||||
? getFallbackTerrainLayerTexture()
|
||||
: textureLookup(material);
|
||||
: (textureLookup(material) ?? getFallbackTerrainLayerTexture());
|
||||
}
|
||||
|
||||
export function getTerrainLayerPreviewColor(material: MaterialDef | null): number {
|
||||
|
||||
Reference in New Issue
Block a user