载入中...
搜索中...
未找到
TerrainImageAdapter.h 文件参考
#include <array>
#include <memory>
#include <vector>
#include "common/Result.h"

浏览源代码.

类

struct  eve::procgen::GtsSnowSurfaceSettings
 GTS snow albedo controls copied from GTSSnowSettings. 更多...
 
struct  eve::procgen::GtsRainSurfaceSettings
 GTS rain albedo controls copied from GTSRainSettings. 更多...
 
struct  eve::procgen::GtsColorMapSettings
 GTS terrain colormap controls from GTSColorMapSettings. 更多...
 
struct  eve::procgen::GtsMacroVariationSettings
 GTS three-scale macro color variation controls from GTSVariationSettings. 更多...
 
struct  eve::procgen::GtsGeologicalSettings
 GTS height-axis geological overlay controls from GTSGeoSettings. 更多...
 
struct  eve::procgen::GtsDetailNormalSettings
 GTS near/far detail-normal controls from GTSDetailSettings. 更多...
 
class  eve::procgen::TerrainSplatPalette
 Ordered linear RGBA colors used to visualize terrain splat layers. 更多...
 
struct  eve::procgen::GtsPackedLayerSettings
 One GTS packed texture-array layer's planar sampling and material controls. 更多...
 
class  eve::procgen::GtsPackedLayerSet
 Owning ordered GTS packed albedo/height and normal/AO/smoothness texture layers. 更多...
 

命名空间

namespace  ssq
 EVEngine ECS 集成层:底层实现使用 sunxfancy/ECS.hpp https://github.com/sunxfancy/ECS.hpp
 
namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::image
 
namespace  eve::procgen
 

函数

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::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::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::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::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.