Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::anonymous_namespace{Vegetation.cpp} Namespace Reference

Functions

FORCE_INLINE U8 BestIndex (const UColour4 &in) noexcept
 
FORCE_INLINE bool ScaleAndCheckBounds (const vec2< F32 > chunkPos, const vec2< F32 > chunkSize, vec2< F32 > &point) noexcept
 

Variables

constexpr U16 BYTE_BUFFER_VERSION = 1u
 
constexpr U32 WORK_GROUP_SIZE = 64
 
constexpr I16 g_maxRadiusSteps = 512
 
constexpr F32 g_ArBase = 1.0f
 
constexpr F32 g_BrBase = 1.0f
 
constexpr F32 g_PointRadiusBaseGrass = 0.935f
 
constexpr F32 g_PointRadiusBaseTrees = 5.f
 
constexpr F32 g_distanceRingsBaseGrass = 2.35f
 
constexpr F32 g_distanceRingsBaseTrees = 2.5f
 
constexpr F32 g_slopeLimitGrass = 30.0f
 
constexpr F32 g_slopeLimitTrees = 10.0f
 

Function Documentation

◆ BestIndex()

FORCE_INLINE U8 Divide::anonymous_namespace{Vegetation.cpp}::BestIndex ( const UColour4 in)
noexcept

Definition at line 825 of file Vegetation.cpp.

◆ ScaleAndCheckBounds()

FORCE_INLINE bool Divide::anonymous_namespace{Vegetation.cpp}::ScaleAndCheckBounds ( const vec2< F32 chunkPos,
const vec2< F32 chunkSize,
vec2< F32 > &  point 
)
noexcept

Definition at line 841 of file Vegetation.cpp.

Variable Documentation

◆ BYTE_BUFFER_VERSION

constexpr U16 Divide::anonymous_namespace{Vegetation.cpp}::BYTE_BUFFER_VERSION = 1u
constexpr

Definition at line 35 of file Vegetation.cpp.

◆ g_ArBase

constexpr F32 Divide::anonymous_namespace{Vegetation.cpp}::g_ArBase = 1.0f
constexpr

Definition at line 39 of file Vegetation.cpp.

◆ g_BrBase

constexpr F32 Divide::anonymous_namespace{Vegetation.cpp}::g_BrBase = 1.0f
constexpr

Definition at line 40 of file Vegetation.cpp.

◆ g_distanceRingsBaseGrass

constexpr F32 Divide::anonymous_namespace{Vegetation.cpp}::g_distanceRingsBaseGrass = 2.35f
constexpr

Definition at line 44 of file Vegetation.cpp.

◆ g_distanceRingsBaseTrees

constexpr F32 Divide::anonymous_namespace{Vegetation.cpp}::g_distanceRingsBaseTrees = 2.5f
constexpr

Definition at line 45 of file Vegetation.cpp.

◆ g_maxRadiusSteps

constexpr I16 Divide::anonymous_namespace{Vegetation.cpp}::g_maxRadiusSteps = 512
constexpr

Definition at line 38 of file Vegetation.cpp.

◆ g_PointRadiusBaseGrass

constexpr F32 Divide::anonymous_namespace{Vegetation.cpp}::g_PointRadiusBaseGrass = 0.935f
constexpr

Definition at line 41 of file Vegetation.cpp.

◆ g_PointRadiusBaseTrees

constexpr F32 Divide::anonymous_namespace{Vegetation.cpp}::g_PointRadiusBaseTrees = 5.f
constexpr

Definition at line 42 of file Vegetation.cpp.

◆ g_slopeLimitGrass

constexpr F32 Divide::anonymous_namespace{Vegetation.cpp}::g_slopeLimitGrass = 30.0f
constexpr

Definition at line 46 of file Vegetation.cpp.

◆ g_slopeLimitTrees

constexpr F32 Divide::anonymous_namespace{Vegetation.cpp}::g_slopeLimitTrees = 10.0f
constexpr

Definition at line 47 of file Vegetation.cpp.

◆ WORK_GROUP_SIZE

constexpr U32 Divide::anonymous_namespace{Vegetation.cpp}::WORK_GROUP_SIZE = 64
constexpr

Definition at line 37 of file Vegetation.cpp.