载入中...
搜索中...
未找到
eve::procgen::GtsPackedLayerSet类 参考

Owning ordered GTS packed albedo/height and normal/AO/smoothness texture layers. 更多...

#include <TerrainImageAdapter.h>

类

struct  Impl
 

Public 成员函数

 GtsPackedLayerSet ()
 Gts packed layer set.
 
 ~GtsPackedLayerSet ()
 Gts packed layer set.
 
 GtsPackedLayerSet (GtsPackedLayerSet &&) noexcept
 Gts packed layer set.
 
GtsPackedLayerSet & operator= (GtsPackedLayerSet &&) noexcept
 Operator =.
 
 GtsPackedLayerSet (const GtsPackedLayerSet &)=delete
 
GtsPackedLayerSet & operator= (const GtsPackedLayerSet &)=delete
 
Result< int > addLayer (const image::ImageData &albedoHeight, const image::ImageData &normalMask, const GtsPackedLayerSettings &settings)
 Copy and append one readable packed texture pair and its finite settings.
 
int getLayerCount () const noexcept
 Return the number of owned packed layers.
 

友元

EVENGINE_API_DOMAINS Result< int > bakeGtsPackedLayers (image::ImageData &, image::ImageData &, Heightmap &, Heightmap &, const Heightmap &, const TerrainSplatmap &, const GtsPackedLayerSet &, double, double, double, double, double)
 Bake planar, stochastic or triplanar GTS packed layers using one normalized splatmap.
 
EVENGINE_API_DOMAINS Result< int > bakeGtsPackedLayerDisplacement (Heightmap &, Heightmap &, const Heightmap &, const TerrainSplatmap &, const GtsPackedLayerSet &, double, double, double, double, double, double, double, double, double)
 Bake GTS planar top-four layer displacement and tessellation with its camera cutoff.
 

详细描述

Owning ordered GTS packed albedo/height and normal/AO/smoothness texture layers.

在文件 TerrainImageAdapter.h 第 83 行定义.

构造及析构函数说明

◆ GtsPackedLayerSet() [1/3]

eve::procgen::GtsPackedLayerSet::GtsPackedLayerSet ( )

Gts packed layer set.

在文件 TerrainImageAdapter.cpp 第 139 行定义.

◆ ~GtsPackedLayerSet()

eve::procgen::GtsPackedLayerSet::~GtsPackedLayerSet ( )
default

Gts packed layer set.

◆ GtsPackedLayerSet() [2/3]

eve::procgen::GtsPackedLayerSet::GtsPackedLayerSet ( GtsPackedLayerSet &&  )
defaultnoexcept

Gts packed layer set.

◆ GtsPackedLayerSet() [3/3]

eve::procgen::GtsPackedLayerSet::GtsPackedLayerSet ( const GtsPackedLayerSet &  )
delete

成员函数说明

◆ addLayer()

Result< int > eve::procgen::GtsPackedLayerSet::addLayer ( const image::ImageData &  albedoHeight,
const image::ImageData &  normalMask,
const GtsPackedLayerSettings &  settings 
)

Copy and append one readable packed texture pair and its finite settings.

在文件 TerrainImageAdapter.cpp 第 143 行定义.

引用了 eve::procgen::raster_detail::invalid(), settings, eve::Result< T >::success(), v , 以及 values.

◆ getLayerCount()

int eve::procgen::GtsPackedLayerSet::getLayerCount ( ) const
noexcept

Return the number of owned packed layers.

在文件 TerrainImageAdapter.cpp 第 230 行定义.

◆ operator=() [1/2]

GtsPackedLayerSet & eve::procgen::GtsPackedLayerSet::operator= ( const GtsPackedLayerSet &  )
delete

◆ operator=() [2/2]

GtsPackedLayerSet & eve::procgen::GtsPackedLayerSet::operator= ( GtsPackedLayerSet &&  )
defaultnoexcept

Operator =.

友元及相关函数文档

◆ bakeGtsPackedLayerDisplacement

EVENGINE_API_DOMAINS Result< int > bakeGtsPackedLayerDisplacement ( Heightmap &  ,
Heightmap &  ,
const Heightmap &  ,
const TerrainSplatmap &  ,
const GtsPackedLayerSet &  ,
double  ,
double  ,
double  ,
double  ,
double  ,
double  ,
double  ,
double  ,
double   
)
friend

Bake GTS planar top-four layer displacement and tessellation with its camera cutoff.

参数
displacementMatching mutable scalar displacement output.
tessellationMatching mutable scalar tessellation output.
heightsBorrowed matching local terrain heights used to form world positions.
splatmapBorrowed authoritative normalized layer weights.
layersBorrowed owning packed layer set in splat order.
cameraXExplicit world camera X.
cameraYExplicit world camera Y.
cameraZExplicit world camera Z.
tessellationMultiplierFinite final multiplier corresponding to GTS _TessellationMultiplier.
originXWorld X of sample (0,0).
originYWorld elevation added to local heights.
originZWorld Z of sample (0,0).
spacingXPositive world X sample spacing.
spacingZPositive world Z sample spacing.
返回
Total changed samples or InvalidArgument; both outputs remain unchanged on failure. @thread Synchronous exclusive output access; inputs are borrowed only for the call.

在文件 TerrainImageAdapter.cpp 第 170 行定义.

◆ bakeGtsPackedLayers

EVENGINE_API_DOMAINS Result< int > bakeGtsPackedLayers ( image::ImageData &  ,
image::ImageData &  ,
Heightmap &  ,
Heightmap &  ,
const Heightmap &  ,
const TerrainSplatmap &  ,
const GtsPackedLayerSet &  ,
double  ,
double  ,
double  ,
double  ,
double   
)
friend

Bake planar, stochastic or triplanar GTS packed layers using one normalized splatmap.

参数
albedoMatching writable color output.
packedNormalMatching writable tangent-normal, AO and smoothness output.
geoStrengthMatching mutable geological-strength raster.
detailStrengthMatching mutable detail-strength raster.
heightsBorrowed local heights used for world positions and triplanar weights.
splatmapBorrowed authoritative normalized layer weights.
layersBorrowed owning packed layer set in splat order.
originXWorld terrain origin X.
originYWorld terrain elevation.
originZWorld terrain origin Z.
spacingXPositive world X sample spacing.
spacingZPositive world Z sample spacing.
返回
Total changed samples or InvalidArgument; all four outputs remain unchanged on failure. @thread Synchronous exclusive output access; no borrow survives the call.

在文件 TerrainImageAdapter.cpp 第 232 行定义.


该类的文档由以下文件生成: