fragmentcolor 0.12.0 → 0.12.2
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/fragmentcolor.d.ts +138 -110
- package/fragmentcolor.js +111 -3
- package/fragmentcolor_bg.wasm +0 -0
- package/package.json +1 -1
package/fragmentcolor.d.ts
CHANGED
|
@@ -269,6 +269,7 @@ export class Pass {
|
|
|
269
269
|
getInput(): PassInput;
|
|
270
270
|
isCompute(): boolean;
|
|
271
271
|
loadPrevious(): void;
|
|
272
|
+
name(): string;
|
|
272
273
|
constructor(name: string);
|
|
273
274
|
require(dependencies: any): void;
|
|
274
275
|
setClearColor(color: any): void;
|
|
@@ -338,9 +339,17 @@ export class Scene {
|
|
|
338
339
|
*/
|
|
339
340
|
add(object: any): void;
|
|
340
341
|
addPass(pass: Pass): void;
|
|
342
|
+
/**
|
|
343
|
+
* Add a SceneObject to a specific Pass, addressed by a numeric index or
|
|
344
|
+
* a string name. Branches on the runtime JS type like `Scene.add`.
|
|
345
|
+
*/
|
|
346
|
+
addTo(target: any, object: any): void;
|
|
341
347
|
ambient(color: Float32Array): void;
|
|
342
348
|
cameras(): Camera[];
|
|
349
|
+
findPass(name: string): Pass | undefined;
|
|
350
|
+
getPass(index: number): Pass | undefined;
|
|
343
351
|
lights(): Light[];
|
|
352
|
+
listPasses(): Pass[];
|
|
344
353
|
/**
|
|
345
354
|
* Load a scene file. Pass a string for a path / URL-like locator, or a
|
|
346
355
|
* `Uint8Array` for an in-memory `.glb` payload.
|
|
@@ -348,6 +357,13 @@ export class Scene {
|
|
|
348
357
|
static load(source: any): Scene;
|
|
349
358
|
models(): Model[];
|
|
350
359
|
constructor();
|
|
360
|
+
noDefaultCamera(): void;
|
|
361
|
+
noDefaultLight(): void;
|
|
362
|
+
noDefaults(): void;
|
|
363
|
+
removePass(pass: Pass): boolean;
|
|
364
|
+
setDefaultCamera(camera: Camera): void;
|
|
365
|
+
setDefaultLight(light: Light): void;
|
|
366
|
+
setPasses(passes: Pass[]): void;
|
|
351
367
|
readonly __fc_kind: string;
|
|
352
368
|
}
|
|
353
369
|
|
|
@@ -619,39 +635,63 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
619
635
|
|
|
620
636
|
export interface InitOutput {
|
|
621
637
|
readonly memory: WebAssembly.Memory;
|
|
622
|
-
readonly
|
|
623
|
-
readonly
|
|
624
|
-
readonly
|
|
625
|
-
readonly
|
|
626
|
-
readonly
|
|
627
|
-
readonly
|
|
628
|
-
readonly
|
|
629
|
-
readonly
|
|
630
|
-
readonly
|
|
631
|
-
readonly
|
|
632
|
-
readonly
|
|
633
|
-
readonly
|
|
634
|
-
readonly
|
|
635
|
-
readonly
|
|
636
|
-
readonly
|
|
637
|
-
readonly
|
|
638
|
-
readonly
|
|
639
|
-
readonly
|
|
640
|
-
readonly
|
|
641
|
-
readonly
|
|
642
|
-
readonly
|
|
643
|
-
readonly
|
|
644
|
-
readonly
|
|
645
|
-
readonly
|
|
646
|
-
readonly
|
|
647
|
-
readonly
|
|
648
|
-
readonly
|
|
649
|
-
readonly
|
|
650
|
-
readonly
|
|
651
|
-
readonly
|
|
652
|
-
readonly
|
|
653
|
-
readonly
|
|
654
|
-
readonly
|
|
638
|
+
readonly __wbg_pass_free: (a: number, b: number) => void;
|
|
639
|
+
readonly __wbg_passinput_free: (a: number, b: number) => void;
|
|
640
|
+
readonly __wbg_scene_free: (a: number, b: number) => void;
|
|
641
|
+
readonly camera_lookAt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
642
|
+
readonly camera_orthographic: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
643
|
+
readonly camera_perspective: (a: number, b: number, c: number, d: number) => number;
|
|
644
|
+
readonly camera_position: (a: number) => [number, number];
|
|
645
|
+
readonly camera_setAspect: (a: number, b: number) => number;
|
|
646
|
+
readonly camera_viewProj: (a: number) => [number, number];
|
|
647
|
+
readonly light_color: (a: number) => [number, number];
|
|
648
|
+
readonly light_direction: (a: number) => [number, number];
|
|
649
|
+
readonly light_directional: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
650
|
+
readonly light_innerConeAngle: (a: number) => number;
|
|
651
|
+
readonly light_intensity: (a: number) => number;
|
|
652
|
+
readonly light_kind: (a: number) => [number, number];
|
|
653
|
+
readonly light_outerConeAngle: (a: number) => number;
|
|
654
|
+
readonly light_point: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
655
|
+
readonly light_position: (a: number) => [number, number];
|
|
656
|
+
readonly light_range: (a: number) => number;
|
|
657
|
+
readonly light_setColor: (a: number, b: number, c: number) => [number, number, number];
|
|
658
|
+
readonly light_setConeAngles: (a: number, b: number, c: number) => [number, number, number];
|
|
659
|
+
readonly light_setDirection: (a: number, b: number, c: number) => [number, number, number];
|
|
660
|
+
readonly light_setIntensity: (a: number, b: number) => number;
|
|
661
|
+
readonly light_setPosition: (a: number, b: number, c: number) => [number, number, number];
|
|
662
|
+
readonly light_setRange: (a: number, b: number) => [number, number, number];
|
|
663
|
+
readonly light_spot: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
664
|
+
readonly model_material: (a: number) => number;
|
|
665
|
+
readonly model_mesh: (a: number) => number;
|
|
666
|
+
readonly model_new_js: (a: number, b: number) => number;
|
|
667
|
+
readonly model_rotate: (a: number, b: number, c: number, d: number) => [number, number];
|
|
668
|
+
readonly model_scale: (a: number, b: number, c: number) => [number, number];
|
|
669
|
+
readonly model_setTransform: (a: number, b: number, c: number) => [number, number];
|
|
670
|
+
readonly model_setVisible: (a: number, b: number) => void;
|
|
671
|
+
readonly model_transform: (a: number) => [number, number];
|
|
672
|
+
readonly model_translate: (a: number, b: number, c: number) => [number, number];
|
|
673
|
+
readonly model_visible: (a: number) => number;
|
|
674
|
+
readonly pass___fc_kind: (a: number) => [number, number];
|
|
675
|
+
readonly scene___fc_kind: (a: number) => [number, number];
|
|
676
|
+
readonly scene_add: (a: number, b: any) => [number, number];
|
|
677
|
+
readonly scene_addPass: (a: number, b: number) => void;
|
|
678
|
+
readonly scene_addTo: (a: number, b: any, c: any) => [number, number];
|
|
679
|
+
readonly scene_ambient: (a: number, b: number, c: number) => [number, number];
|
|
680
|
+
readonly scene_cameras: (a: number) => [number, number];
|
|
681
|
+
readonly scene_findPass: (a: number, b: number, c: number) => number;
|
|
682
|
+
readonly scene_getPass: (a: number, b: number) => number;
|
|
683
|
+
readonly scene_lights: (a: number) => [number, number];
|
|
684
|
+
readonly scene_listPasses: (a: number) => [number, number];
|
|
685
|
+
readonly scene_load: (a: any) => [number, number, number];
|
|
686
|
+
readonly scene_models: (a: number) => [number, number];
|
|
687
|
+
readonly scene_new_js: () => number;
|
|
688
|
+
readonly scene_noDefaultCamera: (a: number) => void;
|
|
689
|
+
readonly scene_noDefaultLight: (a: number) => void;
|
|
690
|
+
readonly scene_noDefaults: (a: number) => void;
|
|
691
|
+
readonly scene_removePass: (a: number, b: number) => number;
|
|
692
|
+
readonly scene_setDefaultCamera: (a: number, b: number) => void;
|
|
693
|
+
readonly scene_setDefaultLight: (a: number, b: number) => void;
|
|
694
|
+
readonly scene_setPasses: (a: number, b: number, c: number) => void;
|
|
655
695
|
readonly __wbg_canvastarget_free: (a: number, b: number) => void;
|
|
656
696
|
readonly __wbg_instance_free: (a: number, b: number) => void;
|
|
657
697
|
readonly __wbg_vertex_free: (a: number, b: number) => void;
|
|
@@ -671,6 +711,11 @@ export interface InitOutput {
|
|
|
671
711
|
readonly mesh_new_js: () => number;
|
|
672
712
|
readonly mesh_setIndices: (a: number, b: any) => [number, number];
|
|
673
713
|
readonly mesh_setInstanceCount: (a: number, b: number) => void;
|
|
714
|
+
readonly mipmap_build: (a: any, b: number, c: any) => [number, number, number];
|
|
715
|
+
readonly mipmap_count: (a: number) => number;
|
|
716
|
+
readonly mipmap_format: (a: number) => number;
|
|
717
|
+
readonly mipmap_level: (a: number, b: number) => [number, number, number];
|
|
718
|
+
readonly mipmap_size: (a: number) => number;
|
|
674
719
|
readonly quad_getMesh: (a: number) => number;
|
|
675
720
|
readonly quad_new_js: (a: any, b: any) => [number, number, number];
|
|
676
721
|
readonly shader_addMesh: (a: number, b: number) => [number, number];
|
|
@@ -690,6 +735,13 @@ export interface InitOutput {
|
|
|
690
735
|
readonly shader_setRegistry: (a: number, b: number) => void;
|
|
691
736
|
readonly shader_unwrap: (a: number) => number;
|
|
692
737
|
readonly shader_validateMesh: (a: number, b: number) => [number, number];
|
|
738
|
+
readonly texture_aspect: (a: number) => number;
|
|
739
|
+
readonly texture_getImage: (a: number) => any;
|
|
740
|
+
readonly texture_id: (a: number) => number;
|
|
741
|
+
readonly texture_setSamplerOptions: (a: number, b: any) => [number, number];
|
|
742
|
+
readonly texture_size: (a: number) => number;
|
|
743
|
+
readonly texture_write: (a: number, b: any) => [number, number];
|
|
744
|
+
readonly texture_writeRegion: (a: number, b: any, c: any) => [number, number];
|
|
693
745
|
readonly texturetarget_getImage: (a: number) => any;
|
|
694
746
|
readonly texturetarget_resize: (a: number, b: any) => [number, number];
|
|
695
747
|
readonly texturetarget_size: (a: number) => number;
|
|
@@ -700,48 +752,19 @@ export interface InitOutput {
|
|
|
700
752
|
readonly vertex_set: (a: number, b: number, c: number, d: any) => [number, number, number];
|
|
701
753
|
readonly instance_new_js: () => number;
|
|
702
754
|
readonly vertex_new_js: (a: any) => [number, number, number];
|
|
703
|
-
readonly
|
|
704
|
-
readonly __wbg_get_textureid_id: (a: number) => bigint;
|
|
755
|
+
readonly __wbg_externaltexturehandle_free: (a: number, b: number) => void;
|
|
705
756
|
readonly __wbg_get_textureusage_bits: (a: number) => number;
|
|
706
|
-
readonly __wbg_mipmap_free: (a: number, b: number) => void;
|
|
707
|
-
readonly __wbg_set_textureid_id: (a: number, b: bigint) => void;
|
|
708
757
|
readonly __wbg_set_textureusage_bits: (a: number, b: number) => void;
|
|
709
|
-
readonly __wbg_texture_free: (a: number, b: number) => void;
|
|
710
|
-
readonly __wbg_textureid_free: (a: number, b: number) => void;
|
|
711
|
-
readonly __wbg_texturetarget_free: (a: number, b: number) => void;
|
|
712
758
|
readonly __wbg_textureusage_free: (a: number, b: number) => void;
|
|
713
|
-
readonly camera___fc_kind: (a: number) => [number, number];
|
|
714
|
-
readonly mipmap___fc_kind: (a: number) => [number, number];
|
|
715
|
-
readonly texture___fc_kind: (a: number) => [number, number];
|
|
716
|
-
readonly texturetarget___fc_kind: (a: number) => [number, number];
|
|
717
|
-
readonly __wbg_get_screenregion_max_x: (a: number) => number;
|
|
718
|
-
readonly __wbg_get_screenregion_max_y: (a: number) => number;
|
|
719
|
-
readonly __wbg_get_screenregion_min_x: (a: number) => number;
|
|
720
|
-
readonly __wbg_get_screenregion_min_y: (a: number) => number;
|
|
721
|
-
readonly __wbg_model_free: (a: number, b: number) => void;
|
|
722
|
-
readonly __wbg_quad_free: (a: number, b: number) => void;
|
|
723
|
-
readonly __wbg_screenregion_free: (a: number, b: number) => void;
|
|
724
|
-
readonly __wbg_set_screenregion_max_x: (a: number, b: number) => void;
|
|
725
|
-
readonly __wbg_set_screenregion_max_y: (a: number, b: number) => void;
|
|
726
|
-
readonly __wbg_set_screenregion_min_x: (a: number, b: number) => void;
|
|
727
|
-
readonly __wbg_set_screenregion_min_y: (a: number, b: number) => void;
|
|
728
|
-
readonly model___fc_kind: (a: number) => [number, number];
|
|
729
759
|
readonly __wbg_get_sampleroptions_compare: (a: number) => number;
|
|
730
760
|
readonly __wbg_get_sampleroptions_repeat_x: (a: number) => number;
|
|
731
761
|
readonly __wbg_get_sampleroptions_repeat_y: (a: number) => number;
|
|
732
762
|
readonly __wbg_get_sampleroptions_smooth: (a: number) => number;
|
|
733
763
|
readonly __wbg_sampleroptions_free: (a: number, b: number) => void;
|
|
734
|
-
readonly __wbg_scene_free: (a: number, b: number) => void;
|
|
735
764
|
readonly __wbg_set_sampleroptions_compare: (a: number, b: number) => void;
|
|
736
765
|
readonly __wbg_set_sampleroptions_repeat_x: (a: number, b: number) => void;
|
|
737
766
|
readonly __wbg_set_sampleroptions_repeat_y: (a: number, b: number) => void;
|
|
738
767
|
readonly __wbg_set_sampleroptions_smooth: (a: number, b: number) => void;
|
|
739
|
-
readonly scene___fc_kind: (a: number) => [number, number];
|
|
740
|
-
readonly set_log_level: (a: number, b: number) => void;
|
|
741
|
-
readonly wasm_start: () => void;
|
|
742
|
-
readonly __wbg_material_free: (a: number, b: number) => void;
|
|
743
|
-
readonly __wbg_shader_free: (a: number, b: number) => void;
|
|
744
|
-
readonly material___fc_kind: (a: number) => [number, number];
|
|
745
768
|
readonly material_alphaCutoff: (a: number, b: number) => number;
|
|
746
769
|
readonly material_alphaMode: (a: number, b: number) => number;
|
|
747
770
|
readonly material_baseColor: (a: number, b: number, c: number) => [number, number, number];
|
|
@@ -772,48 +795,42 @@ export interface InitOutput {
|
|
|
772
795
|
readonly renderer_readTexture: (a: number, b: any) => any;
|
|
773
796
|
readonly renderer_render: (a: number, b: any, c: any) => [number, number];
|
|
774
797
|
readonly renderer_unregisterTexture: (a: number, b: any) => [number, number];
|
|
798
|
+
readonly __wbg_renderer_free: (a: number, b: number) => void;
|
|
799
|
+
readonly renderer___fc_kind: (a: number) => [number, number];
|
|
800
|
+
readonly __wbg_color_free: (a: number, b: number) => void;
|
|
801
|
+
readonly __wbg_get_color_0: (a: number) => number;
|
|
802
|
+
readonly __wbg_get_screenregion_max_x: (a: number) => number;
|
|
803
|
+
readonly __wbg_get_screenregion_max_y: (a: number) => number;
|
|
804
|
+
readonly __wbg_get_screenregion_min_y: (a: number) => number;
|
|
805
|
+
readonly __wbg_screenregion_free: (a: number, b: number) => void;
|
|
806
|
+
readonly __wbg_set_color_0: (a: number, b: number) => void;
|
|
807
|
+
readonly __wbg_set_screenregion_max_x: (a: number, b: number) => void;
|
|
808
|
+
readonly __wbg_set_screenregion_max_y: (a: number, b: number) => void;
|
|
809
|
+
readonly __wbg_set_screenregion_min_y: (a: number, b: number) => void;
|
|
810
|
+
readonly __wbg_get_screenregion_min_x: (a: number) => number;
|
|
811
|
+
readonly __wbg_set_screenregion_min_x: (a: number, b: number) => void;
|
|
812
|
+
readonly __wbg_shader_free: (a: number, b: number) => void;
|
|
775
813
|
readonly shader___fc_kind: (a: number) => [number, number];
|
|
776
|
-
readonly
|
|
814
|
+
readonly __wbg_camera_free: (a: number, b: number) => void;
|
|
815
|
+
readonly __wbg_get_textureoptions_format: (a: number) => number;
|
|
816
|
+
readonly __wbg_get_textureoptions_mipmaps: (a: number) => number;
|
|
817
|
+
readonly __wbg_get_textureoptions_sampler: (a: number) => number;
|
|
818
|
+
readonly __wbg_get_textureoptions_size: (a: number) => number;
|
|
819
|
+
readonly __wbg_get_textureoptions_usage: (a: number) => number;
|
|
820
|
+
readonly __wbg_material_free: (a: number, b: number) => void;
|
|
777
821
|
readonly __wbg_mesh_free: (a: number, b: number) => void;
|
|
778
|
-
readonly
|
|
779
|
-
readonly
|
|
822
|
+
readonly __wbg_set_textureoptions_format: (a: number, b: number) => void;
|
|
823
|
+
readonly __wbg_set_textureoptions_mipmaps: (a: number, b: number) => void;
|
|
824
|
+
readonly __wbg_set_textureoptions_sampler: (a: number, b: number) => void;
|
|
825
|
+
readonly __wbg_set_textureoptions_size: (a: number, b: number) => void;
|
|
826
|
+
readonly __wbg_set_textureoptions_usage: (a: number, b: number) => void;
|
|
827
|
+
readonly __wbg_textureoptions_free: (a: number, b: number) => void;
|
|
828
|
+
readonly camera___fc_kind: (a: number) => [number, number];
|
|
829
|
+
readonly material___fc_kind: (a: number) => [number, number];
|
|
780
830
|
readonly mesh___fc_kind: (a: number) => [number, number];
|
|
781
|
-
readonly pass___fc_kind: (a: number) => [number, number];
|
|
782
831
|
readonly __wbg_light_free: (a: number, b: number) => void;
|
|
783
|
-
readonly
|
|
784
|
-
readonly camera_orthographic: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
785
|
-
readonly camera_perspective: (a: number, b: number, c: number, d: number) => number;
|
|
786
|
-
readonly camera_position: (a: number) => [number, number];
|
|
787
|
-
readonly camera_setAspect: (a: number, b: number) => number;
|
|
788
|
-
readonly camera_viewProj: (a: number) => [number, number];
|
|
832
|
+
readonly __wbg_quad_free: (a: number, b: number) => void;
|
|
789
833
|
readonly light___fc_kind: (a: number) => [number, number];
|
|
790
|
-
readonly light_color: (a: number) => [number, number];
|
|
791
|
-
readonly light_direction: (a: number) => [number, number];
|
|
792
|
-
readonly light_directional: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
793
|
-
readonly light_innerConeAngle: (a: number) => number;
|
|
794
|
-
readonly light_intensity: (a: number) => number;
|
|
795
|
-
readonly light_kind: (a: number) => [number, number];
|
|
796
|
-
readonly light_outerConeAngle: (a: number) => number;
|
|
797
|
-
readonly light_point: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
798
|
-
readonly light_position: (a: number) => [number, number];
|
|
799
|
-
readonly light_range: (a: number) => number;
|
|
800
|
-
readonly light_setColor: (a: number, b: number, c: number) => [number, number, number];
|
|
801
|
-
readonly light_setConeAngles: (a: number, b: number, c: number) => [number, number, number];
|
|
802
|
-
readonly light_setDirection: (a: number, b: number, c: number) => [number, number, number];
|
|
803
|
-
readonly light_setIntensity: (a: number, b: number) => number;
|
|
804
|
-
readonly light_setPosition: (a: number, b: number, c: number) => [number, number, number];
|
|
805
|
-
readonly light_setRange: (a: number, b: number) => [number, number, number];
|
|
806
|
-
readonly light_spot: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number, number];
|
|
807
|
-
readonly model_material: (a: number) => number;
|
|
808
|
-
readonly model_mesh: (a: number) => number;
|
|
809
|
-
readonly model_new_js: (a: number, b: number) => number;
|
|
810
|
-
readonly model_rotate: (a: number, b: number, c: number, d: number) => [number, number];
|
|
811
|
-
readonly model_scale: (a: number, b: number, c: number) => [number, number];
|
|
812
|
-
readonly model_setTransform: (a: number, b: number, c: number) => [number, number];
|
|
813
|
-
readonly model_setVisible: (a: number, b: number) => void;
|
|
814
|
-
readonly model_transform: (a: number) => [number, number];
|
|
815
|
-
readonly model_translate: (a: number, b: number, c: number) => [number, number];
|
|
816
|
-
readonly model_visible: (a: number) => number;
|
|
817
834
|
readonly pass_add: (a: number, b: any) => [number, number];
|
|
818
835
|
readonly pass_addMesh: (a: number, b: number) => [number, number];
|
|
819
836
|
readonly pass_addShader: (a: number, b: number) => void;
|
|
@@ -822,6 +839,7 @@ export interface InitOutput {
|
|
|
822
839
|
readonly pass_getInput: (a: number) => number;
|
|
823
840
|
readonly pass_isCompute: (a: number) => number;
|
|
824
841
|
readonly pass_loadPrevious: (a: number) => void;
|
|
842
|
+
readonly pass_name: (a: number) => [number, number];
|
|
825
843
|
readonly pass_new_js: (a: number, b: number) => number;
|
|
826
844
|
readonly pass_require: (a: number, b: any) => [number, number];
|
|
827
845
|
readonly pass_setClearColor: (a: number, b: any) => [number, number];
|
|
@@ -829,16 +847,26 @@ export interface InitOutput {
|
|
|
829
847
|
readonly pass_setDepthTarget: (a: number, b: any) => [number, number];
|
|
830
848
|
readonly pass_setTarget: (a: number, b: any) => [number, number];
|
|
831
849
|
readonly pass_setViewport: (a: number, b: any) => [number, number];
|
|
832
|
-
readonly
|
|
833
|
-
readonly
|
|
834
|
-
readonly
|
|
835
|
-
readonly
|
|
836
|
-
readonly
|
|
837
|
-
readonly
|
|
838
|
-
readonly
|
|
839
|
-
readonly
|
|
840
|
-
readonly
|
|
841
|
-
readonly
|
|
850
|
+
readonly set_log_level: (a: number, b: number) => void;
|
|
851
|
+
readonly wasm_start: () => void;
|
|
852
|
+
readonly __wbg_get_size_depth: (a: number) => number;
|
|
853
|
+
readonly __wbg_get_size_height: (a: number) => number;
|
|
854
|
+
readonly __wbg_get_size_width: (a: number) => number;
|
|
855
|
+
readonly __wbg_get_textureid_id: (a: number) => bigint;
|
|
856
|
+
readonly __wbg_mipmap_free: (a: number, b: number) => void;
|
|
857
|
+
readonly __wbg_model_free: (a: number, b: number) => void;
|
|
858
|
+
readonly __wbg_set_size_depth: (a: number, b: number) => void;
|
|
859
|
+
readonly __wbg_set_size_height: (a: number, b: number) => void;
|
|
860
|
+
readonly __wbg_set_size_width: (a: number, b: number) => void;
|
|
861
|
+
readonly __wbg_set_textureid_id: (a: number, b: bigint) => void;
|
|
862
|
+
readonly __wbg_size_free: (a: number, b: number) => void;
|
|
863
|
+
readonly __wbg_texture_free: (a: number, b: number) => void;
|
|
864
|
+
readonly __wbg_textureid_free: (a: number, b: number) => void;
|
|
865
|
+
readonly __wbg_texturetarget_free: (a: number, b: number) => void;
|
|
866
|
+
readonly mipmap___fc_kind: (a: number) => [number, number];
|
|
867
|
+
readonly model___fc_kind: (a: number) => [number, number];
|
|
868
|
+
readonly texture___fc_kind: (a: number) => [number, number];
|
|
869
|
+
readonly texturetarget___fc_kind: (a: number) => [number, number];
|
|
842
870
|
readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
|
|
843
871
|
readonly __wbgtest_console_debug: (a: any) => void;
|
|
844
872
|
readonly __wbgtest_console_error: (a: any) => void;
|
package/fragmentcolor.js
CHANGED
|
@@ -1144,6 +1144,12 @@ export class Pass {
|
|
|
1144
1144
|
PassFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
1145
1145
|
return obj;
|
|
1146
1146
|
}
|
|
1147
|
+
static __unwrap(jsValue) {
|
|
1148
|
+
if (!(jsValue instanceof Pass)) {
|
|
1149
|
+
return 0;
|
|
1150
|
+
}
|
|
1151
|
+
return jsValue.__destroy_into_raw();
|
|
1152
|
+
}
|
|
1147
1153
|
__destroy_into_raw() {
|
|
1148
1154
|
const ptr = this.__wbg_ptr;
|
|
1149
1155
|
this.__wbg_ptr = 0;
|
|
@@ -1236,6 +1242,21 @@ export class Pass {
|
|
|
1236
1242
|
loadPrevious() {
|
|
1237
1243
|
wasm.pass_loadPrevious(this.__wbg_ptr);
|
|
1238
1244
|
}
|
|
1245
|
+
/**
|
|
1246
|
+
* @returns {string}
|
|
1247
|
+
*/
|
|
1248
|
+
name() {
|
|
1249
|
+
let deferred1_0;
|
|
1250
|
+
let deferred1_1;
|
|
1251
|
+
try {
|
|
1252
|
+
const ret = wasm.pass_name(this.__wbg_ptr);
|
|
1253
|
+
deferred1_0 = ret[0];
|
|
1254
|
+
deferred1_1 = ret[1];
|
|
1255
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
1256
|
+
} finally {
|
|
1257
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1239
1260
|
/**
|
|
1240
1261
|
* @param {string} name
|
|
1241
1262
|
*/
|
|
@@ -1625,6 +1646,18 @@ export class Scene {
|
|
|
1625
1646
|
_assertClass(pass, Pass);
|
|
1626
1647
|
wasm.scene_addPass(this.__wbg_ptr, pass.__wbg_ptr);
|
|
1627
1648
|
}
|
|
1649
|
+
/**
|
|
1650
|
+
* Add a SceneObject to a specific Pass, addressed by a numeric index or
|
|
1651
|
+
* a string name. Branches on the runtime JS type like `Scene.add`.
|
|
1652
|
+
* @param {any} target
|
|
1653
|
+
* @param {any} object
|
|
1654
|
+
*/
|
|
1655
|
+
addTo(target, object) {
|
|
1656
|
+
const ret = wasm.scene_addTo(this.__wbg_ptr, target, object);
|
|
1657
|
+
if (ret[1]) {
|
|
1658
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1659
|
+
}
|
|
1660
|
+
}
|
|
1628
1661
|
/**
|
|
1629
1662
|
* @param {Float32Array} color
|
|
1630
1663
|
*/
|
|
@@ -1645,6 +1678,24 @@ export class Scene {
|
|
|
1645
1678
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1646
1679
|
return v1;
|
|
1647
1680
|
}
|
|
1681
|
+
/**
|
|
1682
|
+
* @param {string} name
|
|
1683
|
+
* @returns {Pass | undefined}
|
|
1684
|
+
*/
|
|
1685
|
+
findPass(name) {
|
|
1686
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1687
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1688
|
+
const ret = wasm.scene_findPass(this.__wbg_ptr, ptr0, len0);
|
|
1689
|
+
return ret === 0 ? undefined : Pass.__wrap(ret);
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
* @param {number} index
|
|
1693
|
+
* @returns {Pass | undefined}
|
|
1694
|
+
*/
|
|
1695
|
+
getPass(index) {
|
|
1696
|
+
const ret = wasm.scene_getPass(this.__wbg_ptr, index);
|
|
1697
|
+
return ret === 0 ? undefined : Pass.__wrap(ret);
|
|
1698
|
+
}
|
|
1648
1699
|
/**
|
|
1649
1700
|
* @returns {Light[]}
|
|
1650
1701
|
*/
|
|
@@ -1654,6 +1705,15 @@ export class Scene {
|
|
|
1654
1705
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1655
1706
|
return v1;
|
|
1656
1707
|
}
|
|
1708
|
+
/**
|
|
1709
|
+
* @returns {Pass[]}
|
|
1710
|
+
*/
|
|
1711
|
+
listPasses() {
|
|
1712
|
+
const ret = wasm.scene_listPasses(this.__wbg_ptr);
|
|
1713
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
1714
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
1715
|
+
return v1;
|
|
1716
|
+
}
|
|
1657
1717
|
/**
|
|
1658
1718
|
* Load a scene file. Pass a string for a path / URL-like locator, or a
|
|
1659
1719
|
* `Uint8Array` for an in-memory `.glb` payload.
|
|
@@ -1682,6 +1742,46 @@ export class Scene {
|
|
|
1682
1742
|
SceneFinalization.register(this, this.__wbg_ptr, this);
|
|
1683
1743
|
return this;
|
|
1684
1744
|
}
|
|
1745
|
+
noDefaultCamera() {
|
|
1746
|
+
wasm.scene_noDefaultCamera(this.__wbg_ptr);
|
|
1747
|
+
}
|
|
1748
|
+
noDefaultLight() {
|
|
1749
|
+
wasm.scene_noDefaultLight(this.__wbg_ptr);
|
|
1750
|
+
}
|
|
1751
|
+
noDefaults() {
|
|
1752
|
+
wasm.scene_noDefaults(this.__wbg_ptr);
|
|
1753
|
+
}
|
|
1754
|
+
/**
|
|
1755
|
+
* @param {Pass} pass
|
|
1756
|
+
* @returns {boolean}
|
|
1757
|
+
*/
|
|
1758
|
+
removePass(pass) {
|
|
1759
|
+
_assertClass(pass, Pass);
|
|
1760
|
+
const ret = wasm.scene_removePass(this.__wbg_ptr, pass.__wbg_ptr);
|
|
1761
|
+
return ret !== 0;
|
|
1762
|
+
}
|
|
1763
|
+
/**
|
|
1764
|
+
* @param {Camera} camera
|
|
1765
|
+
*/
|
|
1766
|
+
setDefaultCamera(camera) {
|
|
1767
|
+
_assertClass(camera, Camera);
|
|
1768
|
+
wasm.scene_setDefaultCamera(this.__wbg_ptr, camera.__wbg_ptr);
|
|
1769
|
+
}
|
|
1770
|
+
/**
|
|
1771
|
+
* @param {Light} light
|
|
1772
|
+
*/
|
|
1773
|
+
setDefaultLight(light) {
|
|
1774
|
+
_assertClass(light, Light);
|
|
1775
|
+
wasm.scene_setDefaultLight(this.__wbg_ptr, light.__wbg_ptr);
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* @param {Pass[]} passes
|
|
1779
|
+
*/
|
|
1780
|
+
setPasses(passes) {
|
|
1781
|
+
const ptr0 = passArrayJsValueToWasm0(passes, wasm.__wbindgen_malloc);
|
|
1782
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1783
|
+
wasm.scene_setPasses(this.__wbg_ptr, ptr0, len0);
|
|
1784
|
+
}
|
|
1685
1785
|
}
|
|
1686
1786
|
if (Symbol.dispose) Scene.prototype[Symbol.dispose] = Scene.prototype.free;
|
|
1687
1787
|
|
|
@@ -3968,6 +4068,14 @@ function __wbg_get_imports() {
|
|
|
3968
4068
|
const ret = arg0.onSubmittedWorkDone();
|
|
3969
4069
|
return ret;
|
|
3970
4070
|
},
|
|
4071
|
+
__wbg_pass_new: function(arg0) {
|
|
4072
|
+
const ret = Pass.__wrap(arg0);
|
|
4073
|
+
return ret;
|
|
4074
|
+
},
|
|
4075
|
+
__wbg_pass_unwrap: function(arg0) {
|
|
4076
|
+
const ret = Pass.__unwrap(arg0);
|
|
4077
|
+
return ret;
|
|
4078
|
+
},
|
|
3971
4079
|
__wbg_performance_ce6182246e03f6e4: function(arg0) {
|
|
3972
4080
|
const ret = arg0.performance;
|
|
3973
4081
|
return ret;
|
|
@@ -5040,17 +5148,17 @@ function __wbg_get_imports() {
|
|
|
5040
5148
|
arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
|
|
5041
5149
|
}, arguments); },
|
|
5042
5150
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
5043
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
5151
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1257, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5044
5152
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h66800898d84b981f);
|
|
5045
5153
|
return ret;
|
|
5046
5154
|
},
|
|
5047
5155
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
5048
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
5156
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3499, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
5049
5157
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__he4e1206ecfdfadd2);
|
|
5050
5158
|
return ret;
|
|
5051
5159
|
},
|
|
5052
5160
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
5053
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx:
|
|
5161
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 1257, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
5054
5162
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h66800898d84b981f_2);
|
|
5055
5163
|
return ret;
|
|
5056
5164
|
},
|
package/fragmentcolor_bg.wasm
CHANGED
|
Binary file
|