Owning ordered GTS packed albedo/height and normal/AO/smoothness texture layers.
更多...
#include <TerrainImageAdapter.h>
|
| 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 |
( |
| ) |
|
◆ ~GtsPackedLayerSet()
| eve::procgen::GtsPackedLayerSet::~GtsPackedLayerSet |
( |
| ) |
|
|
default |
◆ GtsPackedLayerSet() [2/3]
◆ GtsPackedLayerSet() [3/3]
◆ addLayer()
◆ getLayerCount()
| int eve::procgen::GtsPackedLayerSet::getLayerCount |
( |
| ) |
const |
|
noexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ 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.
- 参数
-
| displacement | Matching mutable scalar displacement output. |
| tessellation | Matching mutable scalar tessellation output. |
| heights | Borrowed matching local terrain heights used to form world positions. |
| splatmap | Borrowed authoritative normalized layer weights. |
| layers | Borrowed owning packed layer set in splat order. |
| cameraX | Explicit world camera X. |
| cameraY | Explicit world camera Y. |
| cameraZ | Explicit world camera Z. |
| tessellationMultiplier | Finite final multiplier corresponding to GTS _TessellationMultiplier. |
| originX | World X of sample (0,0). |
| originY | World elevation added to local heights. |
| originZ | World Z of sample (0,0). |
| spacingX | Positive world X sample spacing. |
| spacingZ | Positive 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.
- 参数
-
| albedo | Matching writable color output. |
| packedNormal | Matching writable tangent-normal, AO and smoothness output. |
| geoStrength | Matching mutable geological-strength raster. |
| detailStrength | Matching mutable detail-strength raster. |
| heights | Borrowed local heights used for world positions and triplanar weights. |
| splatmap | Borrowed authoritative normalized layer weights. |
| layers | Borrowed owning packed layer set in splat order. |
| originX | World terrain origin X. |
| originY | World terrain elevation. |
| originZ | World terrain origin Z. |
| spacingX | Positive world X sample spacing. |
| spacingZ | Positive 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 行定义.
该类的文档由以下文件生成: