@luma.gl/core 9.0.0-alpha.12 → 9.0.0-alpha.14

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.
package/dist/index.d.ts CHANGED
@@ -1,129 +1,6 @@
1
+ export type { DeviceProps } from '@luma.gl/api';
2
+ export { Device, luma } from '@luma.gl/api';
1
3
  export { log, assert, uid } from '@luma.gl/api';
2
4
  export { Timeline } from '@luma.gl/engine';
3
5
  export { ClassicAnimationLoop as AnimationLoop, ClassicModel as Model, Transform, ProgramManager, ClipSpace } from '@luma.gl/webgl-legacy';
4
- export { Geometry, ConeGeometry, CubeGeometry, CylinderGeometry, IcoSphereGeometry, PlaneGeometry, SphereGeometry, TruncatedConeGeometry } from '@luma.gl/engine';
5
- export { createGLContext, instrumentGLContext, FEATURES, hasFeature, hasFeatures } from '@luma.gl/webgl-legacy';
6
- /** @deprecated Use luma.stats */
7
- export declare const lumaStats: import("@luma.gl/api").StatsManager;
8
- export { isWebGL, isWebGL2, getParameters, setParameters, withParameters, resetParameters, cssToDeviceRatio, cssToDevicePixels, Buffer, Program, Framebuffer, Renderbuffer, Texture2D, TextureCube, clear, readPixelsToArray, readPixelsToBuffer, cloneTextureFrom, copyToTexture, Texture3D, TransformFeedback } from '@luma.gl/webgl-legacy';
9
- import { normalizeShaderModule as normalizeShaderModuleDeprecated } from '@luma.gl/shadertools';
10
- /** @deprecated Import directly from `@luma.gl/shadertools` */
11
- export declare const normalizeShaderModule: typeof normalizeShaderModuleDeprecated;
12
- /** @deprecated Import directly from `@luma.gl/shadertools` */
13
- export declare const fp32: {
14
- name: string;
15
- vs: string;
16
- };
17
- /** @deprecated Import directly from `@luma.gl/shadertools` */
18
- export declare const fp64: {
19
- name: string;
20
- vs: string;
21
- dependencies: {
22
- name: string;
23
- vs: string;
24
- getUniforms: () => {
25
- ONE: number;
26
- };
27
- fp64ify: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64ify;
28
- fp64LowPart: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64LowPart;
29
- fp64ifyMatrix4: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64ifyMatrix4;
30
- }[];
31
- fp64ify: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64ify;
32
- fp64LowPart: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64LowPart;
33
- fp64ifyMatrix4: typeof import("@luma.gl/shadertools/modules/fp64/fp64-utils").fp64ifyMatrix4;
34
- };
35
- /** @deprecated Import directly from `@luma.gl/shadertools` */
36
- export declare const project: {
37
- name: string;
38
- getUniforms: (opts?: {
39
- modelMatrix: number[];
40
- viewMatrix: number[];
41
- projectionMatrix: number[];
42
- cameraPositionWorld: number[];
43
- }, prevUniforms?: {}) => Record<string, any>;
44
- vs: string;
45
- fs: string;
46
- };
47
- /** @deprecated Import directly from `@luma.gl/shadertools` */
48
- export declare const dirlight: {
49
- name: string;
50
- fs: string;
51
- getUniforms: (opts?: import("@luma.gl/shadertools/modules/dirlight/dirlight").DirlightOptions) => Record<string, any>;
52
- dependencies: {
53
- name: string;
54
- getUniforms: (opts?: {
55
- modelMatrix: number[];
56
- viewMatrix: number[];
57
- projectionMatrix: number[];
58
- cameraPositionWorld: number[];
59
- }, prevUniforms?: {}) => Record<string, any>;
60
- vs: string;
61
- fs: string;
62
- }[];
63
- };
64
- /** @deprecated Import directly from `@luma.gl/shadertools` */
65
- export declare const picking: {
66
- name: string;
67
- vs: string;
68
- fs: string;
69
- getUniforms: (opts?: Required<import("@luma.gl/shadertools/modules/picking/picking").PickingOptions>) => Record<string, any>;
70
- };
71
- /** @deprecated Import directly from `@luma.gl/shadertools` */
72
- export declare const gouraudLighting: {
73
- name: string;
74
- dependencies: {
75
- name: string;
76
- vs: string;
77
- fs: string;
78
- getUniforms: (opts?: import("@luma.gl/shadertools/modules/lights/lights").LightsOptions) => Record<string, any>;
79
- defines: {
80
- MAX_LIGHTS: number;
81
- };
82
- }[];
83
- vs: string;
84
- defines: {
85
- LIGHTING_VERTEX: number;
86
- };
87
- getUniforms: (opts?: {
88
- material?: import("@luma.gl/shadertools/modules/phong-lighting/phong-lighting").PhongLightingProps;
89
- }) => Record<string, any>;
90
- };
91
- /** @deprecated Import directly from `@luma.gl/shadertools` */
92
- export declare const phongLighting: {
93
- name: string;
94
- dependencies: {
95
- name: string;
96
- vs: string;
97
- fs: string;
98
- getUniforms: (opts?: import("@luma.gl/shadertools/modules/lights/lights").LightsOptions) => Record<string, any>;
99
- defines: {
100
- MAX_LIGHTS: number;
101
- };
102
- }[];
103
- fs: string;
104
- defines: {
105
- LIGHTING_FRAGMENT: number;
106
- };
107
- getUniforms: (opts?: {
108
- material?: import("@luma.gl/shadertools/modules/phong-lighting/phong-lighting").PhongLightingProps;
109
- }) => Record<string, any>;
110
- };
111
- /** @deprecated Import directly from `@luma.gl/shadertools` */
112
- export declare const pbr: {
113
- name: string;
114
- vs: string;
115
- fs: string;
116
- defines: {
117
- LIGHTING_FRAGMENT: number;
118
- };
119
- dependencies: {
120
- name: string;
121
- vs: string;
122
- fs: string;
123
- getUniforms: (opts?: import("@luma.gl/shadertools/modules/lights/lights").LightsOptions) => Record<string, any>;
124
- defines: {
125
- MAX_LIGHTS: number;
126
- };
127
- }[];
128
- };
129
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAC,MAAM,cAAc,CAAC;AAK9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAEzC,OAAO,EACL,oBAAoB,IAAI,aAAa,EACrC,YAAY,IAAI,KAAK,EACrB,SAAS,EACT,cAAc,EACd,SAAS,EACV,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAOzB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,UAAU,EACV,WAAW,EACZ,MAAM,uBAAuB,CAAC;AAG/B,iCAAiC;AACjC,eAAO,MAAM,SAAS,qCAAa,CAAC;AAEpC,OAAO,EACL,OAAO,EACP,QAAQ,EACR,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,MAAM,EACN,OAAO,EACP,WAAW,EACX,YAAY,EACZ,SAAS,EACT,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,SAAS,EACT,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAI/B,OAAO,EAEL,qBAAqB,IAAI,+BAA+B,EAUzD,MAAM,sBAAsB,CAAC;AAE9B,8DAA8D;AAC9D,eAAO,MAAM,qBAAqB,wCAAkC,CAAC;AACrE,8DAA8D;AAC9D,eAAO,MAAM,IAAI;;;CAAiB,CAAC;AACnC,8DAA8D;AAC9D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;CAAiB,CAAC;AACnC,8DAA8D;AAC9D,eAAO,MAAM,OAAO;;;;;;;;;;CAAoB,CAAC;AACzC,8DAA8D;AAC9D,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;CAAqB,CAAC;AAC3C,8DAA8D;AAC9D,eAAO,MAAM,OAAO;;;;;CAAoB,CAAC;AACzC,8DAA8D;AAC9D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;CAA4B,CAAC;AACzD,8DAA8D;AAC9D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;CAA0B,CAAC;AACrD,8DAA8D;AAC9D,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;CAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,YAAY,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAC,MAAM,cAAc,CAAC;AAI9C,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAGzC,OAAO,EACL,oBAAoB,IAAI,aAAa,EACrC,YAAY,IAAI,KAAK,EACrB,SAAS,EACT,cAAc,EACd,SAAS,EACV,MAAM,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -1,19 +1,5 @@
1
+ export { Device, luma } from '@luma.gl/api';
1
2
  export { log, assert, uid } from '@luma.gl/api';
2
3
  export { Timeline } from '@luma.gl/engine';
3
4
  export { ClassicAnimationLoop as AnimationLoop, ClassicModel as Model, Transform, ProgramManager, ClipSpace } from '@luma.gl/webgl-legacy';
4
- export { Geometry, ConeGeometry, CubeGeometry, CylinderGeometry, IcoSphereGeometry, PlaneGeometry, SphereGeometry, TruncatedConeGeometry } from '@luma.gl/engine';
5
- export { createGLContext, instrumentGLContext, FEATURES, hasFeature, hasFeatures } from '@luma.gl/webgl-legacy';
6
- import { luma } from '@luma.gl/api';
7
- export const lumaStats = luma.stats;
8
- export { isWebGL, isWebGL2, getParameters, setParameters, withParameters, resetParameters, cssToDeviceRatio, cssToDevicePixels, Buffer, Program, Framebuffer, Renderbuffer, Texture2D, TextureCube, clear, readPixelsToArray, readPixelsToBuffer, cloneTextureFrom, copyToTexture, Texture3D, TransformFeedback } from '@luma.gl/webgl-legacy';
9
- import { normalizeShaderModule as normalizeShaderModuleDeprecated, fp32 as fp32Deprecated, fp64 as fp64Deprecated, project as projectDeprecated, dirlight as dirlightDeprecated, picking as pickingDeprecated, gouraudLighting as gouraudLightingDeprecated, phongLighting as phongLightingDeprecated, pbr as pbrDeprecated } from '@luma.gl/shadertools';
10
- export const normalizeShaderModule = normalizeShaderModuleDeprecated;
11
- export const fp32 = fp32Deprecated;
12
- export const fp64 = fp64Deprecated;
13
- export const project = projectDeprecated;
14
- export const dirlight = dirlightDeprecated;
15
- export const picking = pickingDeprecated;
16
- export const gouraudLighting = gouraudLightingDeprecated;
17
- export const phongLighting = phongLightingDeprecated;
18
- export const pbr = pbrDeprecated;
19
5
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["log","assert","uid","Timeline","ClassicAnimationLoop","AnimationLoop","ClassicModel","Model","Transform","ProgramManager","ClipSpace","Geometry","ConeGeometry","CubeGeometry","CylinderGeometry","IcoSphereGeometry","PlaneGeometry","SphereGeometry","TruncatedConeGeometry","createGLContext","instrumentGLContext","FEATURES","hasFeature","hasFeatures","luma","lumaStats","stats","isWebGL","isWebGL2","getParameters","setParameters","withParameters","resetParameters","cssToDeviceRatio","cssToDevicePixels","Buffer","Program","Framebuffer","Renderbuffer","Texture2D","TextureCube","clear","readPixelsToArray","readPixelsToBuffer","cloneTextureFrom","copyToTexture","Texture3D","TransformFeedback","normalizeShaderModule","normalizeShaderModuleDeprecated","fp32","fp32Deprecated","fp64","fp64Deprecated","project","projectDeprecated","dirlight","dirlightDeprecated","picking","pickingDeprecated","gouraudLighting","gouraudLightingDeprecated","phongLighting","phongLightingDeprecated","pbr","pbrDeprecated"],"mappings":"AAIA,SAAQA,GAAR,EAAaC,MAAb,EAAqBC,GAArB,QAA+B,cAA/B;AAKA,SAAQC,QAAR,QAAuB,iBAAvB;AAEA,SACEC,oBAAoB,IAAIC,aAD1B,EAEEC,YAAY,IAAIC,KAFlB,EAGEC,SAHF,EAIEC,cAJF,EAKEC,SALF,QAMO,uBANP;AAQA,SACEC,QADF,EAEEC,YAFF,EAGEC,YAHF,EAIEC,gBAJF,EAKEC,iBALF,EAMEC,aANF,EAOEC,cAPF,EAQEC,qBARF,QASO,iBATP;AAgBA,SACEC,eADF,EAEEC,mBAFF,EAGEC,QAHF,EAIEC,UAJF,EAKEC,WALF,QAMO,uBANP;AAQA,SAAQC,IAAR,QAAmB,cAAnB;AAEA,OAAO,MAAMC,SAAS,GAAGD,IAAI,CAACE,KAAvB;AAEP,SACEC,OADF,EAEEC,QAFF,EAGEC,aAHF,EAIEC,aAJF,EAKEC,cALF,EAMEC,eANF,EAOEC,gBAPF,EAQEC,iBARF,EASEC,MATF,EAUEC,OAVF,EAWEC,WAXF,EAYEC,YAZF,EAaEC,SAbF,EAcEC,WAdF,EAeEC,KAfF,EAgBEC,iBAhBF,EAiBEC,kBAjBF,EAkBEC,gBAlBF,EAmBEC,aAnBF,EAoBEC,SApBF,EAqBEC,iBArBF,QAsBO,uBAtBP;AA0BA,SAEEC,qBAAqB,IAAIC,+BAF3B,EAIEC,IAAI,IAAIC,cAJV,EAKEC,IAAI,IAAIC,cALV,EAMEC,OAAO,IAAIC,iBANb,EAOEC,QAAQ,IAAIC,kBAPd,EAQEC,OAAO,IAAIC,iBARb,EASEC,eAAe,IAAIC,yBATrB,EAUEC,aAAa,IAAIC,uBAVnB,EAWEC,GAAG,IAAIC,aAXT,QAYO,sBAZP;AAeA,OAAO,MAAMjB,qBAAqB,GAAGC,+BAA9B;AAEP,OAAO,MAAMC,IAAI,GAAGC,cAAb;AAEP,OAAO,MAAMC,IAAI,GAAGC,cAAb;AAEP,OAAO,MAAMC,OAAO,GAAGC,iBAAhB;AAEP,OAAO,MAAMC,QAAQ,GAAGC,kBAAjB;AAEP,OAAO,MAAMC,OAAO,GAAGC,iBAAhB;AAEP,OAAO,MAAMC,eAAe,GAAGC,yBAAxB;AAEP,OAAO,MAAMC,aAAa,GAAGC,uBAAtB;AAEP,OAAO,MAAMC,GAAG,GAAGC,aAAZ","sourcesContent":["// luma.gl, MIT license\n// core module exports\n\n// UTILS: undocumented API for other luma.gl modules\nexport {log, assert, uid} from '@luma.gl/api';\n\n// CORE MODULE EXPORTS FOR LUMA.GL\n\n// ENGINE\nexport {Timeline} from '@luma.gl/engine';\n\nexport {\n ClassicAnimationLoop as AnimationLoop,\n ClassicModel as Model,\n Transform,\n ProgramManager,\n ClipSpace\n} from '@luma.gl/webgl-legacy';\n\nexport {\n Geometry,\n ConeGeometry,\n CubeGeometry,\n CylinderGeometry,\n IcoSphereGeometry,\n PlaneGeometry,\n SphereGeometry,\n TruncatedConeGeometry\n} from '@luma.gl/engine';\n\n// TODO - the following exports will be removed in v9\n\n// WEBGL - importing from `@luma.gl/core` is deprecated\n\n// GLTOOLS\nexport {\n createGLContext,\n instrumentGLContext,\n FEATURES,\n hasFeature,\n hasFeatures\n} from '@luma.gl/webgl-legacy';\n\nimport {luma} from '@luma.gl/api';\n/** @deprecated Use luma.stats */\nexport const lumaStats = luma.stats;\n\nexport {\n isWebGL,\n isWebGL2,\n getParameters,\n setParameters,\n withParameters,\n resetParameters,\n cssToDeviceRatio,\n cssToDevicePixels,\n Buffer,\n Program,\n Framebuffer,\n Renderbuffer,\n Texture2D,\n TextureCube,\n clear,\n readPixelsToArray,\n readPixelsToBuffer,\n cloneTextureFrom,\n copyToTexture,\n Texture3D,\n TransformFeedback\n} from '@luma.gl/webgl-legacy';\n\n// SHADERTOOLS - importing from `@luma.gl/core` is deprecated\n\nimport {\n // HELPERS\n normalizeShaderModule as normalizeShaderModuleDeprecated,\n // SHADER MODULES\n fp32 as fp32Deprecated,\n fp64 as fp64Deprecated,\n project as projectDeprecated,\n dirlight as dirlightDeprecated,\n picking as pickingDeprecated,\n gouraudLighting as gouraudLightingDeprecated,\n phongLighting as phongLightingDeprecated,\n pbr as pbrDeprecated\n} from '@luma.gl/shadertools';\n\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const normalizeShaderModule = normalizeShaderModuleDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const fp32 = fp32Deprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const fp64 = fp64Deprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const project = projectDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const dirlight = dirlightDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const picking = pickingDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const gouraudLighting = gouraudLightingDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const phongLighting = phongLightingDeprecated;\n/** @deprecated Import directly from `@luma.gl/shadertools` */\nexport const pbr = pbrDeprecated;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":["Device","luma","log","assert","uid","Timeline","ClassicAnimationLoop","AnimationLoop","ClassicModel","Model","Transform","ProgramManager","ClipSpace"],"mappings":"AAQA,SAAQA,MAAR,EAAgBC,IAAhB,QAA2B,cAA3B;AAGA,SAAQC,GAAR,EAAaC,MAAb,EAAqBC,GAArB,QAA+B,cAA/B;AAIA,SAAQC,QAAR,QAAuB,iBAAvB;AAGA,SACEC,oBAAoB,IAAIC,aAD1B,EAEEC,YAAY,IAAIC,KAFlB,EAGEC,SAHF,EAIEC,cAJF,EAKEC,SALF,QAMO,uBANP","sourcesContent":["// luma.gl, MIT license\n\n// core module re-exports API and engine\n\n// @luma.gl/api exports\n// TODO - export full api in v10 (names conflict with removed WebGL exports)\n\nexport type {DeviceProps} from '@luma.gl/api';\nexport {Device, luma} from '@luma.gl/api';\n\n// UTILS\nexport {log, assert, uid} from '@luma.gl/api';\n\n// @luma.gl/engine exports\n\nexport {Timeline} from '@luma.gl/engine';\n\n// TODO - these still have breaking changes, will be upgraded later\nexport {\n ClassicAnimationLoop as AnimationLoop,\n ClassicModel as Model,\n Transform,\n ProgramManager,\n ClipSpace\n} from '@luma.gl/webgl-legacy';\n"],"file":"index.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luma.gl/core",
3
- "version": "9.0.0-alpha.12",
3
+ "version": "9.0.0-alpha.14",
4
4
  "description": "WebGL2 Components for High Performance Rendering and Computation",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -31,11 +31,11 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.0.0",
34
- "@luma.gl/constants": "9.0.0-alpha.12",
35
- "@luma.gl/engine": "9.0.0-alpha.12",
36
- "@luma.gl/shadertools": "9.0.0-alpha.12",
37
- "@luma.gl/webgl": "9.0.0-alpha.12",
38
- "@luma.gl/webgl-legacy": "9.0.0-alpha.12"
34
+ "@luma.gl/constants": "9.0.0-alpha.14",
35
+ "@luma.gl/engine": "9.0.0-alpha.14",
36
+ "@luma.gl/shadertools": "9.0.0-alpha.14",
37
+ "@luma.gl/webgl": "9.0.0-alpha.14",
38
+ "@luma.gl/webgl-legacy": "9.0.0-alpha.14"
39
39
  },
40
- "gitHead": "4059dc47e41bc587b7e5871929aec3f97020015f"
40
+ "gitHead": "777474ce360ac49de05d7de5ee36e7e276a96e08"
41
41
  }
package/src/index.ts CHANGED
@@ -1,14 +1,21 @@
1
1
  // luma.gl, MIT license
2
- // core module exports
3
2
 
4
- // UTILS: undocumented API for other luma.gl modules
3
+ // core module re-exports API and engine
4
+
5
+ // @luma.gl/api exports
6
+ // TODO - export full api in v10 (names conflict with removed WebGL exports)
7
+
8
+ export type {DeviceProps} from '@luma.gl/api';
9
+ export {Device, luma} from '@luma.gl/api';
10
+
11
+ // UTILS
5
12
  export {log, assert, uid} from '@luma.gl/api';
6
13
 
7
- // CORE MODULE EXPORTS FOR LUMA.GL
14
+ // @luma.gl/engine exports
8
15
 
9
- // ENGINE
10
16
  export {Timeline} from '@luma.gl/engine';
11
17
 
18
+ // TODO - these still have breaking changes, will be upgraded later
12
19
  export {
13
20
  ClassicAnimationLoop as AnimationLoop,
14
21
  ClassicModel as Model,
@@ -16,90 +23,3 @@ export {
16
23
  ProgramManager,
17
24
  ClipSpace
18
25
  } from '@luma.gl/webgl-legacy';
19
-
20
- export {
21
- Geometry,
22
- ConeGeometry,
23
- CubeGeometry,
24
- CylinderGeometry,
25
- IcoSphereGeometry,
26
- PlaneGeometry,
27
- SphereGeometry,
28
- TruncatedConeGeometry
29
- } from '@luma.gl/engine';
30
-
31
- // TODO - the following exports will be removed in v9
32
-
33
- // WEBGL - importing from `@luma.gl/core` is deprecated
34
-
35
- // GLTOOLS
36
- export {
37
- createGLContext,
38
- instrumentGLContext,
39
- FEATURES,
40
- hasFeature,
41
- hasFeatures
42
- } from '@luma.gl/webgl-legacy';
43
-
44
- import {luma} from '@luma.gl/api';
45
- /** @deprecated Use luma.stats */
46
- export const lumaStats = luma.stats;
47
-
48
- export {
49
- isWebGL,
50
- isWebGL2,
51
- getParameters,
52
- setParameters,
53
- withParameters,
54
- resetParameters,
55
- cssToDeviceRatio,
56
- cssToDevicePixels,
57
- Buffer,
58
- Program,
59
- Framebuffer,
60
- Renderbuffer,
61
- Texture2D,
62
- TextureCube,
63
- clear,
64
- readPixelsToArray,
65
- readPixelsToBuffer,
66
- cloneTextureFrom,
67
- copyToTexture,
68
- Texture3D,
69
- TransformFeedback
70
- } from '@luma.gl/webgl-legacy';
71
-
72
- // SHADERTOOLS - importing from `@luma.gl/core` is deprecated
73
-
74
- import {
75
- // HELPERS
76
- normalizeShaderModule as normalizeShaderModuleDeprecated,
77
- // SHADER MODULES
78
- fp32 as fp32Deprecated,
79
- fp64 as fp64Deprecated,
80
- project as projectDeprecated,
81
- dirlight as dirlightDeprecated,
82
- picking as pickingDeprecated,
83
- gouraudLighting as gouraudLightingDeprecated,
84
- phongLighting as phongLightingDeprecated,
85
- pbr as pbrDeprecated
86
- } from '@luma.gl/shadertools';
87
-
88
- /** @deprecated Import directly from `@luma.gl/shadertools` */
89
- export const normalizeShaderModule = normalizeShaderModuleDeprecated;
90
- /** @deprecated Import directly from `@luma.gl/shadertools` */
91
- export const fp32 = fp32Deprecated;
92
- /** @deprecated Import directly from `@luma.gl/shadertools` */
93
- export const fp64 = fp64Deprecated;
94
- /** @deprecated Import directly from `@luma.gl/shadertools` */
95
- export const project = projectDeprecated;
96
- /** @deprecated Import directly from `@luma.gl/shadertools` */
97
- export const dirlight = dirlightDeprecated;
98
- /** @deprecated Import directly from `@luma.gl/shadertools` */
99
- export const picking = pickingDeprecated;
100
- /** @deprecated Import directly from `@luma.gl/shadertools` */
101
- export const gouraudLighting = gouraudLightingDeprecated;
102
- /** @deprecated Import directly from `@luma.gl/shadertools` */
103
- export const phongLighting = phongLightingDeprecated;
104
- /** @deprecated Import directly from `@luma.gl/shadertools` */
105
- export const pbr = pbrDeprecated;