Bug Fix and Optimisation
Release 0.12.13
General fixes and improvement
- Rearrange GLAD build target file structure so it matches the default file structure downloaded via GLAD web generator. You may need to clean and re-compile the entire build tree.
- Replace all uses of
std::reducewithstd::accumulatefor the following class because it is not neccessary to use so whenstd::executionis not used, also some compilers have yet support this function:STPSingleHistogramFilterSTPCascadedShadowMapSTPGaussianFilter
Chunk coordinate
Re-specification of chunk coordinate system. Chunks are now located using an integer vector of chunk coordinate in world position, the chunk coordinate will be a multiple of chunk size.
The benefit of using integer values effectively avoids floating point errors when looking up chunks in the hash table using chunk coordinate as key.
Terrain erosion
- Make get erosion brush function in
STPRainDropSettingreturns pointer to const value, was pointer to value. - Improve erosion implementation in general.
- Potentially resolve #39 and fix a race condition in the random number generator by assigning a different RNG to each generation invocation and pool the RNG.