载入中...
搜索中...
未找到
#include "procgen/heightmap/TerrainGrassAdapter.h"#include "common/SquirrelBinding.h"#include "graphics/Grass.h"#include "image/ImageData.h"#include "procgen/PointSet.h"命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::procgen |
函数 | |
| Result< int > | eve::procgen::bakeTerrainGrass (graphics::GrassField &field, const PointSet &points, const std::string &asset, float width, float height) |
| Upload one asset group from generated points into a grass field using its built-in atlas. Preserves roots and independent horizontal/vertical scale; 64-bit instance IDs remain in PointSet, folded to 24-bit animation phases. Asset string selects points; it is not a texture loader. Normals/yaw are not used by upright billboards. | |
| Result< int > | eve::procgen::bakeTerrainGrassImage (graphics::GrassField &field, const PointSet &points, const std::string &asset, float width, float height, const image::ImageData &image) |
| Upload an asset group using one original static RGBA8 texture instead of the built-in atlas. Same selection/thread/publication contract as bakeTerrainGrass; no image reference is retained. RGB and alpha are uploaded unchanged with one frame. Invalid image storage preserves the field. | |
| Result< int > | eve::procgen::bakeTerrainGrassFoliage (graphics::GrassField &field, const PointSet &points, const std::string &asset, float width, float height, const image::ImageData &albedo, const image::ImageData &normal, const image::ImageData &mask, const graphics::grass::GrassFoliageSettings &settings) |
| Upload a Pcg-style static foliage surface with albedo, normal and packed mask maps. | |
| void | eve::procgen::exposeTerrainGrassAdapter (ssq::Table &table) |
| Register full-host grass adapter; VM-thread only, no retained table reference. | |