import { three } from "https://deno.land/x/remapper@3.0.0/src/deps.ts";
const { SphericalHarmonics3 } = three;
Properties
coefficients: Vector3[]
Methods
addScaledSH(sh: SphericalHarmonics3, s: number): SphericalHarmonics3
clone(): this
equals(sh: SphericalHarmonics3): boolean
fromArray(array: number[] | ArrayLike<number>, offset?: number): this
Sets the values of this spherical harmonics from the provided array or array-like.
getIrradianceAt(normal: Vector3, target: Vector3): Vector3
lerp(sh: SphericalHarmonics3, alpha: number): SphericalHarmonics3
scale(s: number): SphericalHarmonics3
set(coefficients: Vector3[]): SphericalHarmonics3
toArray(array?: number[], offset?: number): number[]
Returns an array with the values of this spherical harmonics, or copies them into the provided array.
toArray(array: ArrayLike<number>, offset?: number): ArrayLike<number>
Returns an array with the values of this spherical harmonics, or copies them into the provided array-like.
Static Methods
getBasisAt(normal: Vector3, shBasis: number[]): void