载入中...
搜索中...
未找到
FoliageCluster.h
浏览该文件的文档.
CPU triangle mesh from procedural mesh recipes (e.g. marching cubes). Positions/normals are xyz-packe...
Definition MeshBuild.h:19
Definition EvpackPointGraphLoader.h:12
int addFoliageCluster(MeshBuild &out, const FoliageClusterDesc &desc)
Append one blue-noise leaf cluster to a mesh.
Definition FoliageCluster.cpp:125
Recipe for one stylized leaf cluster ("foliage card bundle").
Definition FoliageCluster.h:24
float leafJitter
Per-leaf offset along the plane normal, in radius units; clamped to 0..0.5.
Definition FoliageCluster.h:57
std::uint32_t seed
RNG stream seed; the same seed and inputs reproduce the same leaves.
Definition FoliageCluster.h:26
float tiltDegrees
Maximum ring-plane tilt away from vertical, in degrees; clamped to 0..80.
Definition FoliageCluster.h:51
float uvMax
End of the foliage band in the shared tree/bush atlas, on U.
Definition FoliageCluster.h:71
float leafScaleVariation
Leaf size variation as a fraction of leafSize; clamped to 0..0.6.
Definition FoliageCluster.h:59
float planeScaleVariation
Per-plane radius variation; clamped to 0..0.6.
Definition FoliageCluster.h:55
bool doubleSided
Emit both windings per leaf. The engine's mesh3d pipelines cull back faces unless a Material opts int...
Definition FoliageCluster.h:77
float uvMin
Start of the foliage band in the shared tree/bush atlas, on U.
Definition FoliageCluster.h:69
int capPlanes
Near-horizontal planes that close the cluster's top and bottom. A pure ring of vertical planes leaves...
Definition FoliageCluster.h:49
float leafSpacing
Blue-noise centre distance, in leafSize units. Larger values spread the leaves out (sparser,...
Definition FoliageCluster.h:42
float planeOffset
Per-plane translation inside the cluster, in radius units; clamped to 0..0.6.
Definition FoliageCluster.h:53
int planes
Leaf planes rotated around the cluster's Y axis; clamped to 1..24.
Definition FoliageCluster.h:44
int maxLeavesPerPlane
Hard cap on leaves per plane; clamped to 1..256. When it binds, the sampler widens the blue-noise dis...
Definition FoliageCluster.h:65
float normalRounding
Blend from the flat plane normal (0) to the cluster sphere normal (1).
Definition FoliageCluster.h:67