Package-level declarations

Types

Link copied to clipboard
open class CubemapFilter(shader: Shader? = null)

Filter base class. Renders "full-screen" quads.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class SphericalHarmonics : Filter

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun evaluateSHIrradiance(direction: Vector3, _SH: Array<Vector3>): Vector3
Link copied to clipboard
fun genGlslGatherSH(xProbes: Int, yProbes: Int, zProbes: Int, spacing: Double = 1.0, offset: Vector3): String
Link copied to clipboard
fun genLightingCoefficientsForNormal(N: Vector3, L: Vector3): Array<Vector3>
Link copied to clipboard
Link copied to clipboard
fun Cubemap.irradianceCoefficients(): Array<Vector3>

based on https://andrew-pham.blog/2019/08/26/spherical-harmonics/

Link copied to clipboard
fun Cubemap.mapUVSToN(u: Double, v: Double, side: CubemapSide): Vector3