@shapediver/viewer.rendering-engine.rendering-engine-threejs 3.12.15 → 3.12.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,32 @@
1
+ import { DataTexture } from "three";
2
+ /**
3
+ * Texture library for {@link RectAreaLight}. This class holds the LTC BRDF data
4
+ * in data textures for further use in the renderer.
5
+ *
6
+ * Reference: Real-Time Polygonal-Light Shading with Linearly Transformed Cosines
7
+ * by Eric Heitz, Jonathan Dupuy, Stephen Hill and David Neubelt. [Code]{@link https://github.com/selfshadow/ltc_code/}.
8
+ *
9
+ * NOTE: This is a temporary location for the BRDF approximation texture data
10
+ * based off of Eric Heitz's work (see citation). BRDF data for
11
+ * `RectAreaLight` is currently approximated using a precomputed texture
12
+ * of roughly 80kb in size. The hope is to find a better way to include
13
+ * the large texture data before including the full RectAreaLight implementation
14
+ * in the main build files.
15
+ *
16
+ * @hideconstructor
17
+ * @three_import import { RectAreaLightTexturesLib } from 'three/addons/lights/RectAreaLightTexturesLib.js';
18
+ */
19
+ declare class RectAreaLightTexturesLib {
20
+ static LTC_HALF_1: DataTexture | null;
21
+ static LTC_HALF_2: DataTexture | null;
22
+ static LTC_FLOAT_1: DataTexture | null;
23
+ static LTC_FLOAT_2: DataTexture | null;
24
+ /**
25
+ * Inits the texture library.
26
+ *
27
+ * @return {RectAreaLightTexturesLib}
28
+ */
29
+ static init(): typeof RectAreaLightTexturesLib;
30
+ }
31
+ export { RectAreaLightTexturesLib };
32
+ //# sourceMappingURL=RectAreaLightTexturesLib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RectAreaLightTexturesLib.d.ts","sourceRoot":"","sources":["../../../src/three/lights/RectAreaLightTexturesLib.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,WAAW,EAQX,MAAM,OAAO,CAAC;AAEf;;;;;;;;;;;;;;;;GAgBG;AACH,cAAM,wBAAwB;IAC7B,MAAM,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,MAAM,CAAC,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,MAAM,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IACvC,MAAM,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAC;IACvC;;;;OAIG;IACH,MAAM,CAAC,IAAI;CAqyJX;AAsCD,OAAO,EAAC,wBAAwB,EAAC,CAAC"}