Skip to content

Improve Vector Maths

Choose a tag to compare

@stephen-hqxu stephen-hqxu released this 08 May 23:19
dc63285

Release 0.13.2

Linear algebra library

This release introduce an initial implementations of hand-optimised SIMD linear algebra libraries, STPVector4d and STPMatrix4x4d. Currently it supports:

  • Matrix transpose and inverse
  • Matrix-matrix and matrix-vector multiplication
  • Vector dot product
  • Vector broadcast
  • Vector addition and division
  • Represent an equivalent 3-by-3 matrix

Tests are implemented and the linear algebra library passes all 103 assertions.

The new library is integrated into STPCascadedShadowMap and STPScenePipeline::STPCameraInformation.

General fixes and improvement

  • Fulfilling license requirements for all redistributed external projects.
  • Improve documentation on build instructions.
  • Improve visuals for the project README document.
  • Fix a bug in the SuperDemo+ build script which did not copy STPBiomeProperty.hpp to the binary directory to be used by NVRTC.
  • Improve build script so it can group headers when opening from an IDE, i.e., MSVC.
  • Attempt to group some source files to make it more developer-friendly.

Biome generator in STPBiome

  • For simplification, remove the old STPBiome, rename STPBiomeSettings to STPBiome.
  • Refactor all biome variable names to avoid using all capital letters (which is supposed to be used by macros).
  • Replace use of std::vector with std::array in STPBaseBiomeLayer.
  • Change STPBiomeRegistry from class to namespace.
  • Make all declarations of functions and variables in STPBiomeRegistry as inline to enforce auto-initialised external linkage.