#include <LandscapeGrassType.h>
◆ FGrassVariety()
| FGrassVariety::FGrassVariety |
( |
| ) |
|
◆ GetDensity()
| float FGrassVariety::GetDensity |
( |
| ) |
const |
◆ GetEndCullDistance()
| int32 FGrassVariety::GetEndCullDistance |
( |
| ) |
const |
◆ GetStartCullDistance()
| int32 FGrassVariety::GetStartCullDistance |
( |
| ) |
const |
◆ IsGrassQualityLevelEnable()
| bool FGrassVariety::IsGrassQualityLevelEnable |
( |
| ) |
const |
◆ AlignToSurface
| bool FGrassVariety::AlignToSurface |
Whether the grass instances should be tilted to the normal of the landscape (true), or always vertical (false)
◆ AllowedDensityRange
Specifies the density range where the grass variety is allowed to be spawned ([0,1] represents the entire range).
◆ bAffectDistanceFieldLighting
| bool FGrassVariety::bAffectDistanceFieldLighting |
Controls whether the primitive should affect dynamic distance field lighting methods.
◆ bAlignToTriangleNormals
| bool FGrassVariety::bAlignToTriangleNormals |
When aligning to the surface when using grid mode, whether we should align to triangle normal (true) or a smooth grid-based normal (false). Halton always uses triangle normal.
◆ bCastContactShadow
| bool FGrassVariety::bCastContactShadow |
Whether the grass should cast contact shadows.
◆ bCastDynamicShadow
| bool FGrassVariety::bCastDynamicShadow |
Whether the grass should cast shadows when using non-precomputed shadowing.
◆ bKeepInstanceBufferCPUCopy
| bool FGrassVariety::bKeepInstanceBufferCPUCopy |
Whether we should keep a cpu copy of the instance buffer. This should be set to true if you plan on using GetOverlappingXXXXCount functions of the component otherwise it won't return any data.
◆ bReceivesDecals
| bool FGrassVariety::bReceivesDecals |
Whether the grass instances should receive decals.
◆ bUseGrid
| bool FGrassVariety::bUseGrid |
◆ bUseLandscapeLightmap
| bool FGrassVariety::bUseLandscapeLightmap |
◆ bWeightAttenuatesMaxScale
| bool FGrassVariety::bWeightAttenuatesMaxScale = false |
If enabled the the scale of instances is reduced as the weight (density) decreases
◆ EndCullDistance
The distance where instances will have completely faded out when using a PerInstanceFadeAmount material node. 0 disables. When the entire cluster is beyond this distance, the cluster is completely culled and not rendered at all.
◆ EndCullDistanceQuality
◆ GrassDensity
◆ GrassDensityQuality
◆ GrassMesh
◆ InstanceWorldPositionOffsetDisableDistance
| uint32 FGrassVariety::InstanceWorldPositionOffsetDisableDistance |
Distance at which to grass instances should disable WPO for performance reasons
◆ LightingChannels
Lighting channels that the grass will be assigned. Lights with matching channels will affect the grass. These channels only apply to opaque materials, direct lighting, and dynamic lighting and shadowing.
◆ MaxScaleWeightAttenuation
| float FGrassVariety::MaxScaleWeightAttenuation = 0.5f |
Modulate the scale of the instances based on weight (normalized density). The weight range (ScaleWeightAttenuation, 1.0) maps to (scaleMin, scaleMax), weight values less than ScaleWeightAttenuation are set to minScale
◆ MinLOD
| int32 FGrassVariety::MinLOD |
Specifies the smallest LOD that will be used for this component. If -1 (default), the MinLOD of the static mesh asset will be used instead.
◆ OverrideMaterials
◆ PlacementJitter
| float FGrassVariety::PlacementJitter |
◆ RandomRotation
| bool FGrassVariety::RandomRotation |
Whether the grass instances should be placed at random rotation (true) or all at the same rotation (false)
◆ ScaleX
Specifies the range of scale, from minimum to maximum, to apply to a grass instance's X Scale property
◆ ScaleY
Specifies the range of scale, from minimum to maximum, to apply to a grass instance's Y Scale property
◆ ScaleZ
Specifies the range of scale, from minimum to maximum, to apply to a grass instance's Z Scale property
◆ Scaling
Specifies grass instance scaling type
◆ ShadowCacheInvalidationBehavior
Control shadow invalidation behavior, in particular with respect to Virtual Shadow Maps and material effects like World Position Offset.
◆ StartCullDistance
◆ StartCullDistanceQuality
The documentation for this struct was generated from the following files: