rhodonite 0.15.0 → 0.15.1

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/LICENSE CHANGED
@@ -22,8 +22,36 @@ SOFTWARE.
22
22
 
23
23
  ---
24
24
 
25
- This software includes portions of code originally developed by the Khronos Group Inc.
25
+ This software includes portions of code originally developed by the Khronos Group.
26
26
  Some of these portions have been translated and modified for use in the RhodoniteTS library.
27
27
  - glTF-Sample-Renderer (https://github.com/KhronosGroup/glTF-Sample-Renderer)
28
28
 
29
29
  See LICENSES/glTF-Sample-Renderer.LICENSE for details.
30
+
31
+ ---
32
+
33
+ This software includes code originally developed by enkimute.
34
+ - hdrpng.js (https://github.com/enkimute/hdrpng.js)
35
+
36
+ See LICENSES/hdrpng.js.LICENSE for details.
37
+
38
+ ---
39
+
40
+ This software includes code originally developed by Don McCurdy.
41
+ - KTX-Parse (https://github.com/donmccurdy/KTX-Parse)
42
+
43
+ See LICENSES/KTX-Parse.LICENSE for details.
44
+
45
+ ---
46
+
47
+ This software includes code originally developed by Don McCurdy.
48
+ - zstddec-wasm (https://github.com/donmccurdy/zstddec-wasm)
49
+
50
+ See LICENSES/zstddec-wasm.LICENSE for details.
51
+
52
+ ---
53
+
54
+ This software includes code originally developed by W3C/immersive-web.
55
+ - webxr-input-profiles (https://github.com/immersive-web/webxr-input-profiles)
56
+
57
+ See LICENSES/webxr-input-profiles.LICENSE for details.
package/README.md CHANGED
@@ -194,10 +194,15 @@ $ yarn doc
194
194
 
195
195
  ## Testing Rhodonite
196
196
 
197
+ The following command runs unit tests and E2E tests.
198
+
197
199
  ```bash
198
200
  $ yarn test
199
201
  ```
200
202
 
203
+ The E2E test uses a headless browser for rendering. Because the results are GPU hardware-dependent rather than software-dependent, results will vary depending on your environment.
204
+ Since the correct images were run in the library author's environment, it is likely that many tests will fail in your environment.
205
+
201
206
  You can execute a part of tests like this.
202
207
 
203
208
  ### For unit test
@@ -213,7 +218,7 @@ $ yarn test-unit-part -- ./src/foundation/core/Entity.test.ts
213
218
  ### For E2E (visual) test
214
219
 
215
220
  ```bash
216
- $ yarn test-e2e-part -- ./samples/test_e2e/DataTextureInstancedDrawingWebGL1
221
+ $ yarn test-e2e-part -- ./samples/test_e2e/DataTextureInstancedDrawing
217
222
  ```
218
223
 
219
224
  ## Development using VSCode devcontainer
@@ -250,14 +255,20 @@ Some of these portions have been translated and modified for use in the Rhodonit
250
255
 
251
256
  See [LICENSES/glTF-Sample-Renderer.LICENSE](LICENSES/glTF-Sample-Renderer.LICENSE) for details.
252
257
 
253
- ### Libraries & Tools
258
+ ### Libraries
254
259
 
255
- Our library uses the following libraries and tools and more. Thank you.
260
+ This library uses the following libraries.
256
261
 
257
262
  * [immersive-web/webxr-input-profiles](https://github.com/immersive-web/webxr-input-profiles) (forked version)
258
- * [KhronosGroup/glTF-Sample-Assets](https://github.com/KhronosGroup/glTF-Sample-Assets)
263
+ * [enkimute/hdrpng.js](https://github.com/enkimute/hdrpng.js)
264
+ * [donmccurdy/KTX-Parse](https://github.com/donmccurdy/KTX-Parse)
265
+ * [donmccurdy/zstddec-wasm](https://github.com/donmccurdy/zstddec-wasm)
259
266
 
260
- Check the complete list on package.json.
267
+ ### Assets
268
+
269
+ This library also uses the following assets.
270
+
271
+ * [KhronosGroup/glTF-Sample-Assets](https://github.com/KhronosGroup/glTF-Sample-Assets)
261
272
 
262
273
  ### Contributors
263
274
 
package/VERSION-FILE CHANGED
@@ -1,2 +1,2 @@
1
- v0.15.0-0-g79019ac91-dirty
1
+ v0.15.1-0-g1656e2424-dirty
2
2
  main
@@ -2030,6 +2030,7 @@ declare const ShaderSemantics: Readonly<{
2030
2030
  BrdfLutTexture: ShaderSemanticsEnum;
2031
2031
  DiffuseEnvTexture: ShaderSemanticsEnum;
2032
2032
  SpecularEnvTexture: ShaderSemanticsEnum;
2033
+ SheenEnvTexture: ShaderSemanticsEnum;
2033
2034
  InverseEnvironment: ShaderSemanticsEnum;
2034
2035
  IBLParameter: ShaderSemanticsEnum;
2035
2036
  ViewPosition: ShaderSemanticsEnum;
@@ -3646,6 +3647,7 @@ type RenderingArgWebGL = {
3646
3647
  renderPass: RenderPass;
3647
3648
  diffuseCube?: CubeTexture | RenderTargetTextureCube;
3648
3649
  specularCube?: CubeTexture | RenderTargetTextureCube;
3650
+ sheenCube?: CubeTexture | RenderTargetTextureCube;
3649
3651
  isVr: boolean;
3650
3652
  displayIdx: Index;
3651
3653
  setUniform: boolean;
@@ -3852,7 +3854,7 @@ declare class WebGpuResourceRepository extends CGAPIResourceRepository implement
3852
3854
  private __toClearRenderBundles;
3853
3855
  executeRenderBundle(renderPass: RenderPass): boolean;
3854
3856
  finishRenderBundleEncoder(renderPass: RenderPass): void;
3855
- getOrCreateRenderPipeline(renderPipelineId: string, primitive: Primitive, material: Material, renderPass: RenderPass, zWrite: boolean, diffuseCubeMap?: CubeTexture | RenderTargetTextureCube, specularCubeMap?: CubeTexture | RenderTargetTextureCube): [GPURenderPipeline, boolean];
3857
+ getOrCreateRenderPipeline(renderPipelineId: string, primitive: Primitive, material: Material, renderPass: RenderPass, zWrite: boolean, diffuseCubeMap?: CubeTexture | RenderTargetTextureCube, specularCubeMap?: CubeTexture | RenderTargetTextureCube, sheenCubeMap?: CubeTexture | RenderTargetTextureCube): [GPURenderPipeline, boolean];
3856
3858
  flush(): void;
3857
3859
  setColorWriteMask(material: Material): GPUColorWriteFlags;
3858
3860
  /**
@@ -5746,7 +5748,6 @@ declare class Material extends RnObject {
5746
5748
  get materialTypeName(): string;
5747
5749
  get stateVersion(): number;
5748
5750
  makeShadersInvalidate(): void;
5749
- setTime(time: number): void;
5750
5751
  }
5751
5752
 
5752
5753
  type RnM2 = {
@@ -6032,8 +6033,6 @@ type RnM2Accessor = {
6032
6033
  accessor?: Accessor;
6033
6034
  extensions?: Gltf2AnyObject;
6034
6035
  extras?: {
6035
- attributeName: string;
6036
- toGetAsTypedArray: boolean;
6037
6036
  typedDataArray?: Float32Array;
6038
6037
  componentN?: number;
6039
6038
  componentBytes?: number;
@@ -10331,6 +10330,7 @@ declare class Texture extends AbstractTexture implements Disposable {
10331
10330
  declare class MeshRendererComponent extends Component {
10332
10331
  private __diffuseCubeMap?;
10333
10332
  private __specularCubeMap?;
10333
+ private __sheenCubeMap?;
10334
10334
  private __diffuseCubeMapContribution;
10335
10335
  private __specularCubeMapContribution;
10336
10336
  private __rotationOfCubeMap;
@@ -10345,6 +10345,7 @@ declare class MeshRendererComponent extends Component {
10345
10345
  get componentTID(): ComponentTID;
10346
10346
  get diffuseCubeMap(): RenderTargetTextureCube | CubeTexture | undefined;
10347
10347
  get specularCubeMap(): RenderTargetTextureCube | CubeTexture | undefined;
10348
+ get sheenCubeMap(): RenderTargetTextureCube | CubeTexture | undefined;
10348
10349
  get updateCount(): number;
10349
10350
  static get updateCount(): number;
10350
10351
  get diffuseCubeMapContribution(): number;
@@ -10353,7 +10354,7 @@ declare class MeshRendererComponent extends Component {
10353
10354
  set specularCubeMapContribution(contribution: number);
10354
10355
  get rotationOfCubeMap(): number;
10355
10356
  set rotationOfCubeMap(rotation: number);
10356
- setIBLCubeMap(diffuseCubeTexture: CubeTexture | RenderTargetTextureCube, specularCubeTexture: CubeTexture | RenderTargetTextureCube): Promise<void> | undefined;
10357
+ setIBLCubeMap(diffuseCubeTexture: CubeTexture | RenderTargetTextureCube, specularCubeTexture: CubeTexture | RenderTargetTextureCube, sheenCubeTexture?: CubeTexture | RenderTargetTextureCube): Promise<void> | undefined;
10357
10358
  static common_$load({ processApproach }: {
10358
10359
  processApproach: ProcessApproachEnum;
10359
10360
  }): void;
@@ -11844,6 +11845,7 @@ interface SphereDescriptor extends IAnyPrimitiveDescriptor {
11844
11845
  widthSegments?: Count;
11845
11846
  /** the number of segments for height direction */
11846
11847
  heightSegments?: Count;
11848
+ inverseNormal?: boolean;
11847
11849
  physics?: PhysicsProperty;
11848
11850
  }
11849
11851
  /**
@@ -12495,7 +12497,7 @@ declare function createLightWithCameraEntity(): ILightEntity & ICameraEntityMeth
12495
12497
  * type of animation.channel.target.path in glTF2
12496
12498
  * See: https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#_animation_channels
12497
12499
  */
12498
- type AnimationPathName = 'undefined' | 'translate' | 'quaternion' | 'scale' | 'weights' | 'material' | 'light_color' | 'light_intensity' | 'light_range' | 'light_spot_innerConeAngle' | 'light_spot_outerConeAngle' | 'camera_znear' | 'camera_zfar' | 'camera_fovy' | 'camera_xmag' | 'camera_ymag' | 'effekseer';
12500
+ type AnimationPathName = 'undefined' | 'translate' | 'quaternion' | 'scale' | 'weights' | `material/${string}` | 'light_color' | 'light_intensity' | 'light_range' | 'light_spot_innerConeAngle' | 'light_spot_outerConeAngle' | 'camera_znear' | 'camera_zfar' | 'camera_fovy' | 'camera_xmag' | 'camera_ymag' | 'effekseer';
12499
12501
  type AnimationTrackName = string;
12500
12502
  interface AnimationInfo {
12501
12503
  name: AnimationTrackName;
@@ -12636,7 +12638,7 @@ declare class AnimationComponent extends Component {
12636
12638
  * @param pathName - the name of animation path
12637
12639
  * @param animatedValue - the animated value
12638
12640
  */
12639
- setAnimation(pathName: AnimationPathName, animatedValue: IAnimatedValue): void;
12641
+ setAnimation(pathName: AnimationPathName, animatedValueArg: IAnimatedValue): void;
12640
12642
  getAnimation(pathName: AnimationPathName): IAnimatedValue | undefined;
12641
12643
  getStartInputValueOfAnimation(animationTrackName: string): number;
12642
12644
  getEndInputValueOfAnimation(animationTrackName: string): number;
@@ -16715,6 +16717,7 @@ declare class ForwardRenderPipeline extends RnObject {
16715
16717
  private __oDrawFunc;
16716
16718
  private __oDiffuseCubeTexture;
16717
16719
  private __oSpecularCubeTexture;
16720
+ private __oSheenCubeTexture;
16718
16721
  private __oSamplerForBackBuffer;
16719
16722
  private __toneMappingType;
16720
16723
  private __bloomHelper;
@@ -16766,7 +16769,7 @@ declare class ForwardRenderPipeline extends RnObject {
16766
16769
  * @param diffuse - diffuse IBL Cube Texture
16767
16770
  * @param specular - specular IBL Cube Texture
16768
16771
  */
16769
- setIBLTextures(diffuse: CubeTexture, specular: CubeTexture): Promise<void>;
16772
+ setIBLTextures(diffuse: CubeTexture, specular: CubeTexture, sheen?: CubeTexture): Promise<void>;
16770
16773
  /**
16771
16774
  * getter of initial expression
16772
16775
  */