ezEngine Release 26.9
Loading...
Searching...
No Matches
ezKrautGeneratorResourceDescriptor Struct Reference

#include <KrautGeneratorResource.h>

Inheritance diagram for ezKrautGeneratorResourceDescriptor:

Public Member Functions

ezResult Serialize (ezStreamWriter &inout_stream) const
 
ezResult Deserialize (ezStreamReader &inout_stream)
 
- Public Member Functions inherited from ezRefCounted
virtual ~ezRefCounted ()=default
 Adds a virtual destructor.
 
- Public Member Functions inherited from ezRefCountingImpl
 ezRefCountingImpl ()=default
 Constructor.
 
 ezRefCountingImpl (const ezRefCountingImpl &rhs)
 
void operator= (const ezRefCountingImpl &rhs)
 
ezInt32 AddRef () const
 Increments the reference counter. Returns the new reference count.
 
ezInt32 ReleaseRef () const
 Decrements the reference counter. Returns the new reference count.
 
bool IsReferenced () const
 Returns true if the reference count is greater than 0, false otherwise.
 
ezInt32 GetRefCount () const
 Returns the current reference count.
 

Public Attributes

Kraut::TreeStructureDesc m_TreeStructureDesc
 
Kraut::LodDesc m_LodDesc [5]
 
ezHybridArray< ezKrautMaterialDescriptor, 4 > m_Materials
 
ezString m_sSurfaceResource
 
float m_fStaticColliderRadius = 0.5f
 
float m_fUniformScaling = 1.0f
 
float m_fLodDistanceScale = 1.0f
 
float m_fTreeStiffness = 10.0f
 
float m_fMinAmbientOcclusion = 0.7f
 
ezUInt16 m_uiDefaultDisplaySeed = 0
 Seed shown in the asset editor when no explicit seed is selected.
 
ezHybridArray< ezUInt16, 16 > m_GoodRandomSeeds
 Curated list of seeds that produce good-looking tree variations.
 

Detailed Description

Holds all authoring parameters for a Kraut tree asset.

This descriptor is loaded from disk and shared across all seed instances. It drives both tree structure generation (via Kraut::TreeStructureDesc) and runtime properties such as collision, wind, and LOD switching distances.


The documentation for this struct was generated from the following files: