载入中...
搜索中...
未找到
TerrainImageAdapter.cpp 文件参考
#include "procgen/heightmap/TerrainImageAdapter.h"
#include <simplesquirrel/simplesquirrel.hpp>
#include <algorithm>
#include <cmath>
#include "common/SquirrelBinding.h"
#include "image/ImageData.h"
#include "procgen/heightmap/TerrainImageMask.h"
#include "procgen/heightmap/TerrainSplatmap.h"
#include "procgen/heightmap/TerrainRasterInternal.h"
#include "procgen/heightmap/TerrainStamp.h"

浏览源代码.

类

struct  eve::procgen::GtsPackedLayerSet::Impl
 
struct  eve::procgen::GtsPackedLayerSet::Impl::Layer
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 

函数

Result< int > eve::procgen::bakeGtsPackedLayerDisplacement (Heightmap &displacement, Heightmap &tessellation, const Heightmap &heights, const TerrainSplatmap &splatmap, const GtsPackedLayerSet &layers, double cameraX, double cameraY, double cameraZ, double tessellationMultiplier=1, double originX=0, double originY=0, double originZ=0, double spacingX=1, double spacingZ=1)
 Bake GTS planar top-four layer displacement and tessellation with its camera cutoff.
 
Result< int > eve::procgen::bakeGtsPackedLayers (image::ImageData &albedo, image::ImageData &packedNormal, Heightmap &geoStrength, Heightmap &detailStrength, const Heightmap &heights, const TerrainSplatmap &splatmap, const GtsPackedLayerSet &layers, double originX=0, double originY=0, double originZ=0, double spacingX=1, double spacingZ=1)
 Bake planar, stochastic or triplanar GTS packed layers using one normalized splatmap.
 
Result< int > eve::procgen::bakeTerrainSplatAlbedo (image::ImageData &output, const TerrainSplatmap &splatmap, const TerrainSplatPalette &palette)
 Blend every splat layer color into a borrowed ImageData atomically.
 
Result< int > eve::procgen::generateGtsGlobalBlendDistance (Heightmap &output, const Heightmap &heights, double cameraX, double cameraY, double cameraZ, double blendDistance, double blendRange, double originX=0, double originY=0, double originZ=0, double spacingX=1, double spacingZ=1)
 Generate GTS camera-distance near/far blend values for a terrain raster.
 
Result< int > eve::procgen::bakeGtsColorMapAlbedo (image::ImageData &output, const image::ImageData &colorMap, const Heightmap &globalBlendDistance, const GtsColorMapSettings &settings)
 Blend the GTS terrain colormap into an existing albedo before weather layers.
 
Result< int > eve::procgen::bakeGtsMacroVariationAlbedo (image::ImageData &output, const image::ImageData &variationMap, const GtsMacroVariationSettings &settings, double originX=0, double originZ=0, double spacingX=1, double spacingZ=1)
 Apply GTS three-scale repeating macro variation after weather layers.
 
Result< int > eve::procgen::bakeGtsGeologicalSurface (image::ImageData &albedo, image::ImageData &packedNormal, const Heightmap &heights, const Heightmap &layerStrength, const Heightmap &globalBlendDistance, const image::ImageData &geoAlbedo, const image::ImageData &geoNormal, const GtsGeologicalSettings &settings, double originY=0)
 Bake the GTS near/far height-axis geological color and tangent normal overlay atomically.
 
Result< int > eve::procgen::bakeGtsDetailSurface (image::ImageData &albedo, image::ImageData &packedNormal, Heightmap &detailGreyscale, const Heightmap &layerStrength, const Heightmap &globalBlendDistance, const image::ImageData &detailNormal, const GtsDetailNormalSettings &settings, double originX=0, double originZ=0, double spacingX=1, double spacingZ=1)
 Bake GTS near/far detail normals, albedo micro-shadowing and snow-detail influence atomically.
 
Result< int > eve::procgen::bakeGtsWeatherAlbedo (image::ImageData &output, const Heightmap &heights, const image::ImageData &snowAlbedo, const image::ImageData &snowMask, const GtsSnowSurfaceSettings &snow, const GtsRainSurfaceSettings &rain, double originX=0, double originZ=0, double spacingX=1, double spacingZ=1, const Heightmap *detailGreyscale=nullptr)
 Bake the GTS snow and rain albedo branches over an existing terrain image.
 
Result< int > eve::procgen::bakeGtsWeatherPbr (image::ImageData &normalOutput, image::ImageData &maskOutput, Heightmap &displacement, Heightmap &tessellation, const Heightmap &heights, const image::ImageData &snowNormal, const image::ImageData &snowMask, const image::ImageData &rainData, const GtsSnowSurfaceSettings &snow, const GtsRainSurfaceSettings &rain, double timeSeconds, double originX=0, double originZ=0, double spacingX=1, double spacingZ=1)
 Bake GTS snow/rain world normals, packed mask, displacement and tessellation atomically.
 
Result< int > eve::procgen::generateTerrainImageMaskFromImage (Heightmap &target, const Heightmap &input, const image::ImageData &image, const Heightmap &curve, const TerrainImageMaskSettings &settings, TerrainMaskBlend mode)
 Read a borrowed ImageData into scalar RGBA planes and apply the image-mask kernel atomically.
 
Result< int > eve::procgen::combinePcgMaskMapChannels (image::ImageData &output, const image::ImageData &red, const image::ImageData &green, const image::ImageData &blue, const image::ImageData &alpha, std::uint32_t activeChannels=15)
 Combine Pcg Mask Map Export channel rasters into one RGBA image.
 
Result< int > eve::procgen::placePcgMaskMapTileInto (image::ImageData &output, const image::ImageData &tile, int destinationX, int destinationY, int destinationWidth, int destinationHeight)
 Scale and copy one Pcg local mask-map result into a combined atlas rectangle.
 
void eve::procgen::exposeTerrainImageAdapter (ssq::Table &table)
 Register the full-host ImageData adapter; VM-thread only, no retained table reference.
 

变量说明

◆ vertices

std::array<double, 2> vertices[3]

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

◆ weights

◆ x

float x

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

◆ y

float y

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

◆ z

float z

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