@@ -27,7 +27,7 @@
</model>
<lights>
<light2 shadow-ortho-scale="0.5">
-
+ <position y="1.8"></position>
</light2>
</lights>
</babylon>
@@ -53,7 +53,7 @@ class HTMLMapper implements IMapper {
} else if (val === "false") {
val = false;
} else {
- var isnum = /^\d+$/.test(val);
+ var isnum = !isNaN(parseFloat(val)) && isFinite(val);///^\d+$/.test(val);
if (isnum) {
let number = parseFloat(val);
if (!isNaN(number)) {
@@ -95,7 +95,8 @@ export let extendedConfiguration: ViewerConfiguration = {
environmentIntensity: 0.268
},
normalize: true,
- castShadow: true
+ castShadow: true,
+ receiveShadows: true
lab: {
environmentAssetsRootURL: '/assets/environment/',