rhodonite 0.8.7 → 0.9.0

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/README.md CHANGED
@@ -72,7 +72,7 @@ If you get an error like "webxr-input-profiles not found" when building a projec
72
72
  async function load() {
73
73
  // All Rhodonite classes you need are in window.Rn object.
74
74
  await Rn.System.init({
75
- approach: Rn.ProcessApproach.UniformWebGL2,
75
+ approach: Rn.ProcessApproach.Uniform,
76
76
  canvas: document.getElementById('world')
77
77
  });
78
78
  const entityRepository = Rn.EntityRepository.getInstance();
@@ -97,7 +97,7 @@ import Rn from 'rhodonite';
97
97
 
98
98
  async function load() {
99
99
  await Rn.System.init({
100
- approach: Rn.ProcessApproach.UniformWebGL2,
100
+ approach: Rn.ProcessApproach.Uniform,
101
101
  canvas: document.getElementById('world') as HTMLCanvasElement
102
102
  });
103
103
 
@@ -125,7 +125,7 @@ import Rn from 'rhodonite/dist/esm/index.mjs';
125
125
 
126
126
  async function load() {
127
127
  await Rn.System.init({
128
- approach: Rn.ProcessApproach.UniformWebGL2,
128
+ approach: Rn.ProcessApproach.Uniform,
129
129
  canvas: document.getElementById('world') as HTMLCanvasElement
130
130
  });
131
131
 
@@ -219,7 +219,7 @@ $ yarn test-unit-part -- ./src/foundation/core/Entity.test.ts
219
219
  ### For E2E (visual) test
220
220
 
221
221
  ```bash
222
- $ yarn test-e2e-part -- ./samples/test_e2e/FastestInstancedDrawingWebGL1
222
+ $ yarn test-e2e-part -- ./samples/test_e2e/DataTextureInstancedDrawingWebGL1
223
223
  ```
224
224
 
225
225
  ### For M1 Mac in E2E test
package/VERSION-FILE CHANGED
@@ -1,2 +1,2 @@
1
- v0.8.7-0-gb0b68f78-dirty
1
+ v0.9.0-0-gc3fbf89b-dirty
2
2
  master
@@ -29,7 +29,7 @@ export declare class GlobalDataRepository {
29
29
  getGlobalPropertyStruct(propertyIndex: Index): GlobalPropertyStruct | undefined;
30
30
  getGlobalProperties(): GlobalPropertyStruct[];
31
31
  _setUniformLocationsForUniformModeOnly(shaderProgramUid: CGAPIResourceHandle): void;
32
- _setUniformLocationsForFastestModeOnly(shaderProgramUid: CGAPIResourceHandle): void;
32
+ _setUniformLocationsForDataTextureModeOnly(shaderProgramUid: CGAPIResourceHandle): void;
33
33
  setUniformValues(shaderProgram: WebGLProgram): void;
34
34
  getLocationOffsetOfProperty(propertyIndex: Index): IndexOf16Bytes;
35
35
  getCurrentDataNumberOfTheProperty(propertyIndex: Index): number;
@@ -4,16 +4,14 @@ export declare class ProcessApproachClass extends EnumClass implements EnumIO {
4
4
  index: number;
5
5
  str: string;
6
6
  });
7
- get webGLVersion(): 1 | 0 | 2;
7
+ get webGLVersion(): 0 | 2;
8
8
  }
9
9
  export declare type ProcessApproachEnum = ProcessApproachClass;
10
10
  export declare const ProcessApproach: Readonly<{
11
- isFastestApproach: (processApproach: ProcessApproachEnum) => boolean;
11
+ isDataTextureApproach: (processApproach: ProcessApproachEnum) => boolean;
12
12
  isUniformApproach: (processApproach: ProcessApproachEnum) => boolean;
13
13
  None: ProcessApproachClass;
14
- UniformWebGL1: ProcessApproachClass;
15
- UniformWebGL2: ProcessApproachClass;
16
- FastestWebGL1: ProcessApproachClass;
17
- FastestWebGL2: ProcessApproachClass;
14
+ Uniform: ProcessApproachClass;
15
+ DataTexture: ProcessApproachClass;
18
16
  isWebGL2Approach: (processApproach: ProcessApproachEnum) => boolean;
19
17
  }>;
@@ -24,6 +24,6 @@ export declare type ShaderSemanticsInfo = {
24
24
  soloDatum?: boolean;
25
25
  isComponentData?: boolean;
26
26
  noControlUi?: boolean;
27
- needUniformInFastest?: boolean;
27
+ needUniformInDataTextureMode?: boolean;
28
28
  none_u_prefix?: boolean;
29
29
  };
@@ -69,7 +69,7 @@ export declare class Material extends RnObject {
69
69
  getParameter(shaderSemantic: ShaderSemanticsEnum): any;
70
70
  /**
71
71
  * @private
72
- * called from WebGLStrategyFastest and WebGLStrategyUnfirom only
72
+ * called from WebGLStrategyDataTexture and WebGLStrategyUnfirom only
73
73
  * @param isUniformOnlyMode
74
74
  */
75
75
  _setUniformLocationsOfMaterialNodes(isUniformOnlyMode: boolean): void;
@@ -80,7 +80,7 @@ export declare class Material extends RnObject {
80
80
  isShaderProgramReady(): boolean;
81
81
  /**
82
82
  * @private
83
- * called from WebGLStrategyFastest and WebGLStrategyUnitform only
83
+ * called from WebGLStrategyDataTexture and WebGLStrategyUnitform only
84
84
  */
85
85
  _setParametersToGpu({ material, shaderProgram, firstTime, args, }: {
86
86
  material: Material;
@@ -107,7 +107,7 @@ export declare class Material extends RnObject {
107
107
  private __getTargetShaderSemantics;
108
108
  /**
109
109
  * @private
110
- * called from WebGLStrategyFastest and WebGLStrategyUnfirom
110
+ * called from WebGLStrategyDataTexture and WebGLStrategyUnfirom
111
111
  * @param vertexShaderMethodDefinitions_uniform
112
112
  * @param propertySetter
113
113
  * @param isWebGL2
@@ -134,12 +134,12 @@ export declare class Material extends RnObject {
134
134
  setBlendFuncFactor(blendFuncSrcFactor: number, blendFuncDstFactor: number): void;
135
135
  /**
136
136
  * @private
137
- * called WebGLStrategyFastest and WebGLStrategyUniform only
137
+ * called WebGLStrategyDataTexture and WebGLStrategyUniform only
138
138
  */
139
139
  _setupBasicUniformsLocations(): void;
140
140
  /**
141
141
  * @private
142
- * called WebGLStrategyFastest and WebGLStrategyUniform only
142
+ * called WebGLStrategyDataTexture and WebGLStrategyUniform only
143
143
  */
144
144
  _setupAdditionalUniformLocations(shaderSemantics: ShaderSemanticsInfo[], isUniformOnlyMode: boolean): WebGLProgram;
145
145
  isEmptyMaterial(): boolean;
@@ -36,7 +36,7 @@ export declare class System {
36
36
  static process(expressions: Expression[]): void;
37
37
  private static setViewportForNormalRendering;
38
38
  private static bindFramebuffer;
39
- static init(desc: SystemInitDescription): Promise<WebGLRenderingContext | WebGL2RenderingContext>;
39
+ static init(desc: SystemInitDescription): Promise<WebGL2RenderingContext>;
40
40
  static detectComponentMethods(): void;
41
41
  static get processApproach(): import("../definitions/ProcessApproach").ProcessApproachClass;
42
42
  static resizeCanvas(width: number, height: number): void;