@xviewer.js/debug 1.0.0-alpha.48 → 1.0.0-alpha.49
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/main.js +112 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +113 -2
- package/dist/module.js.map +1 -1
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -2624,7 +2624,8 @@ const meshStandardMaterialProperties = {
|
|
|
2624
2624
|
},
|
|
2625
2625
|
normalScale: {
|
|
2626
2626
|
dir: "normal",
|
|
2627
|
-
parent: "normalMap"
|
|
2627
|
+
parent: "normalMap",
|
|
2628
|
+
step: 0.01
|
|
2628
2629
|
},
|
|
2629
2630
|
displacementScale: {
|
|
2630
2631
|
dir: "displacement",
|
|
@@ -2660,6 +2661,116 @@ const meshStandardMaterialProperties = {
|
|
|
2660
2661
|
for(let k in meshStandardMaterialProperties){
|
|
2661
2662
|
core.property(meshStandardMaterialProperties[k])(three.MeshStandardMaterial.prototype, k);
|
|
2662
2663
|
}
|
|
2664
|
+
const meshPhysicalMaterialProperties = {
|
|
2665
|
+
ior: {
|
|
2666
|
+
min: 0,
|
|
2667
|
+
max: 10,
|
|
2668
|
+
step: 0.01
|
|
2669
|
+
},
|
|
2670
|
+
anisotropy: {
|
|
2671
|
+
min: 0,
|
|
2672
|
+
max: 10,
|
|
2673
|
+
step: 0.01
|
|
2674
|
+
},
|
|
2675
|
+
clearcoat: {
|
|
2676
|
+
dir: "clearcoat"
|
|
2677
|
+
},
|
|
2678
|
+
clearcoatMap: {
|
|
2679
|
+
dir: "clearcoat",
|
|
2680
|
+
min: 0,
|
|
2681
|
+
max: 1,
|
|
2682
|
+
step: 0.01
|
|
2683
|
+
},
|
|
2684
|
+
clearcoatRoughness: {
|
|
2685
|
+
dir: "clearcoat",
|
|
2686
|
+
min: 0,
|
|
2687
|
+
max: 1,
|
|
2688
|
+
step: 0.01
|
|
2689
|
+
},
|
|
2690
|
+
clearcoatNormalScale: {
|
|
2691
|
+
dir: "clearcoat",
|
|
2692
|
+
step: 0.01
|
|
2693
|
+
},
|
|
2694
|
+
clearcoatNormalMap: {
|
|
2695
|
+
dir: "clearcoat"
|
|
2696
|
+
},
|
|
2697
|
+
iridescence: {
|
|
2698
|
+
dir: "iridescence",
|
|
2699
|
+
min: 0,
|
|
2700
|
+
max: 1,
|
|
2701
|
+
step: 0.01
|
|
2702
|
+
},
|
|
2703
|
+
iridescenceMap: {
|
|
2704
|
+
dir: "iridescence"
|
|
2705
|
+
},
|
|
2706
|
+
iridescenceIOR: {
|
|
2707
|
+
dir: "iridescence",
|
|
2708
|
+
step: 0.01
|
|
2709
|
+
},
|
|
2710
|
+
iridescenceThicknessRange: {
|
|
2711
|
+
dir: "iridescence"
|
|
2712
|
+
},
|
|
2713
|
+
iridescenceThicknessMap: {
|
|
2714
|
+
dir: "iridescence"
|
|
2715
|
+
},
|
|
2716
|
+
sheen: {
|
|
2717
|
+
dir: "sheen"
|
|
2718
|
+
},
|
|
2719
|
+
sheenColor: {
|
|
2720
|
+
dir: "sheen"
|
|
2721
|
+
},
|
|
2722
|
+
sheenColorMap: {
|
|
2723
|
+
dir: "sheen"
|
|
2724
|
+
},
|
|
2725
|
+
sheenRoughness: {
|
|
2726
|
+
dir: "sheen",
|
|
2727
|
+
min: 0,
|
|
2728
|
+
max: 1,
|
|
2729
|
+
step: 0.01
|
|
2730
|
+
},
|
|
2731
|
+
sheenRoughnessMap: {
|
|
2732
|
+
dir: "sheen"
|
|
2733
|
+
},
|
|
2734
|
+
transmission: {
|
|
2735
|
+
dir: "transmission"
|
|
2736
|
+
},
|
|
2737
|
+
transmissionMap: {
|
|
2738
|
+
dir: "transmission"
|
|
2739
|
+
},
|
|
2740
|
+
thickness: {
|
|
2741
|
+
dir: "thickness",
|
|
2742
|
+
min: 0,
|
|
2743
|
+
max: 1,
|
|
2744
|
+
step: 0.01
|
|
2745
|
+
},
|
|
2746
|
+
thicknessMap: {
|
|
2747
|
+
dir: "thickness"
|
|
2748
|
+
},
|
|
2749
|
+
attenuationDistance: {
|
|
2750
|
+
dir: "attenuation"
|
|
2751
|
+
},
|
|
2752
|
+
attenuationColor: {
|
|
2753
|
+
dir: "attenuation"
|
|
2754
|
+
},
|
|
2755
|
+
specularIntensity: {
|
|
2756
|
+
dir: "specular",
|
|
2757
|
+
min: 0,
|
|
2758
|
+
max: 1,
|
|
2759
|
+
step: 0.01
|
|
2760
|
+
},
|
|
2761
|
+
specularIntensityMap: {
|
|
2762
|
+
dir: "specular"
|
|
2763
|
+
},
|
|
2764
|
+
specularColor: {
|
|
2765
|
+
dir: "specular"
|
|
2766
|
+
},
|
|
2767
|
+
specularColorMap: {
|
|
2768
|
+
dir: "specular"
|
|
2769
|
+
}
|
|
2770
|
+
};
|
|
2771
|
+
for(let k in meshPhysicalMaterialProperties){
|
|
2772
|
+
core.property(meshPhysicalMaterialProperties[k])(three.MeshPhysicalMaterial.prototype, k);
|
|
2773
|
+
}
|
|
2663
2774
|
|
|
2664
2775
|
/**
|
|
2665
2776
|
* @author mrdoob / http://mrdoob.com/
|