ULandscapeComponent::GenerateHeightmapMips

Generate mipmaps for height and tangent data.

Windows
MacOS
Linux

References

Module

Landscape

Header

/Engine/Source/Runtime/Landscape/Classes/LandscapeComponent.h

Include

#include "LandscapeComponent.h"

Source

/Engine/Source/Runtime/Landscape/Private/LandscapeEdit.cpp

Syntax

void GenerateHeightmapMips
(
    TArray< FColor * > & HeightmapTextureMipData,
    int32 ComponentX1,
    int32 ComponentY1,
    int32 ComponentX2,
    int32 ComponentY2,
    FLandscapeTextureDataInfo * TextureDataInfo
)

Remarks

Generate mipmaps for height and tangent data.

Parameters

Parameter

Description

HeightmapTextureMipData

array of pointers to the locked mip data. This should only include the mips that are generated directly from this component's data ie where each subsection has at least 2 vertices.

ComponentX1

region of texture to update in component space, MAX_int32 meant end of X component in ALandscape::Import()

ComponentY1

region of texture to update in component space, MAX_int32 meant end of Y component in ALandscape::Import()

ComponentX2

(optional) - region of texture to update in component space

ComponentY2

(optional) - region of texture to update in component space

TextureDataInfo

FLandscapeTextureDataInfo pointer, to notify of the mip data region updated.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss