@eturnity/eturnity_3d 1.0.37 → 1.0.38
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/package.json +1 -1
- package/src/helper/renderMixin.js +11 -1
- package/src/utils/layers.js +1 -1
package/package.json
CHANGED
|
@@ -837,7 +837,17 @@ export default {
|
|
|
837
837
|
this.renderBackground()
|
|
838
838
|
},
|
|
839
839
|
async loadProjectionMaterial() {
|
|
840
|
-
if(!this.layoutSettings.base64_image_url)
|
|
840
|
+
if(!this.layoutSettings.base64_image_url)
|
|
841
|
+
{
|
|
842
|
+
this.loader.load(require("../assets/images/white_tile.png"),(texture)=>{
|
|
843
|
+
let projectionMaterial = new ProjectedMaterial({
|
|
844
|
+
camera: _this.cameraprojection,
|
|
845
|
+
texture: texture
|
|
846
|
+
})
|
|
847
|
+
this.material.roof = projectionMaterial
|
|
848
|
+
})
|
|
849
|
+
return
|
|
850
|
+
}
|
|
841
851
|
const _this=this
|
|
842
852
|
let projectedMaterialLoaded= await new Promise((resolve,reject) => {
|
|
843
853
|
this.loader.load(this.layoutSettings.base64_image_url,(texture)=>{
|
package/src/utils/layers.js
CHANGED