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 +4 -4
- package/VERSION-FILE +1 -1
- package/dist/cjs/foundation/core/GlobalDataRepository.d.ts +1 -1
- package/dist/cjs/foundation/definitions/ProcessApproach.d.ts +4 -6
- package/dist/cjs/foundation/definitions/ShaderSemanticsInfo.d.ts +1 -1
- package/dist/cjs/foundation/materials/core/Material.d.ts +5 -5
- package/dist/cjs/foundation/system/System.d.ts +1 -1
- package/dist/cjs/index.cjs +200 -337
- package/dist/cjs/webgl/WebGLResourceRepository.d.ts +1 -1
- package/dist/cjs/webgl/WebGLStrategyDataTexture.d.ts +59 -0
- package/dist/cjs/webgl/WebGLStrategyFastest.d.ts +2 -2
- package/dist/cjs/webgl/index.d.ts +1 -1
- package/dist/cjs/webgl/main.d.ts +2 -2
- package/dist/esm/foundation/core/GlobalDataRepository.d.ts +1 -1
- package/dist/esm/foundation/definitions/ProcessApproach.d.ts +4 -6
- package/dist/esm/foundation/definitions/ShaderSemanticsInfo.d.ts +1 -1
- package/dist/esm/foundation/materials/core/Material.d.ts +5 -5
- package/dist/esm/foundation/system/System.d.ts +1 -1
- package/dist/esm/index.mjs +200 -337
- package/dist/esm/webgl/WebGLResourceRepository.d.ts +1 -1
- package/dist/esm/webgl/WebGLStrategyDataTexture.d.ts +59 -0
- package/dist/esm/webgl/WebGLStrategyFastest.d.ts +2 -2
- package/dist/esm/webgl/index.d.ts +1 -1
- package/dist/esm/webgl/main.d.ts +2 -2
- package/package.json +1 -1
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.
|
|
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.
|
|
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.
|
|
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/
|
|
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.
|
|
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
|
-
|
|
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():
|
|
7
|
+
get webGLVersion(): 0 | 2;
|
|
8
8
|
}
|
|
9
9
|
export declare type ProcessApproachEnum = ProcessApproachClass;
|
|
10
10
|
export declare const ProcessApproach: Readonly<{
|
|
11
|
-
|
|
11
|
+
isDataTextureApproach: (processApproach: ProcessApproachEnum) => boolean;
|
|
12
12
|
isUniformApproach: (processApproach: ProcessApproachEnum) => boolean;
|
|
13
13
|
None: ProcessApproachClass;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
FastestWebGL1: ProcessApproachClass;
|
|
17
|
-
FastestWebGL2: ProcessApproachClass;
|
|
14
|
+
Uniform: ProcessApproachClass;
|
|
15
|
+
DataTexture: ProcessApproachClass;
|
|
18
16
|
isWebGL2Approach: (processApproach: ProcessApproachEnum) => boolean;
|
|
19
17
|
}>;
|
|
@@ -69,7 +69,7 @@ export declare class Material extends RnObject {
|
|
|
69
69
|
getParameter(shaderSemantic: ShaderSemanticsEnum): any;
|
|
70
70
|
/**
|
|
71
71
|
* @private
|
|
72
|
-
* called from
|
|
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
|
|
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
|
|
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
|
|
137
|
+
* called WebGLStrategyDataTexture and WebGLStrategyUniform only
|
|
138
138
|
*/
|
|
139
139
|
_setupBasicUniformsLocations(): void;
|
|
140
140
|
/**
|
|
141
141
|
* @private
|
|
142
|
-
* called
|
|
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<
|
|
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;
|