Jump to content

Something missing in the Sky Material


joeBImagine
 Share

Recommended Posts

I am under the suspicion that there is something I am missing in the Sky material.  I am able to use the sky material in the playground as depicted in this link: https://www.babylonjs-playground.com/#ZU3JQZ#5

I also followed this doc link to the T:  https://doc.babylonjs.com/extensions/sky

However when I download the code, and run it on a local server, it is nothing but a blank screen.  Any thoughts?  

Link to comment
Share on other sites

  • 2 years later...

could anybody help to have a look ?

i add the js reference as :

        <script src="https://preview.babylonjs.com/materialsLibrary/babylon.skyMaterial.min.js" type="text/javascript"></script>

but still got below issue:

Uncaught TypeError: Cannot read property 'Effect' of undefined
    at Module.4 (babylon.skyMaterial.min.js:16)
    at n (babylon.skyMaterial.min.js:1)
    at Module.<anonymous> (babylon.skyMaterial.min.js:16)
    at Module.31 (babylon.skyMaterial.min.js:16)
    at n (babylon.skyMaterial.min.js:1)
    at 0 (babylon.skyMaterial.min.js:1)
    at babylon.skyMaterial.min.js:1
    at babylon.skyMaterial.min.js:1
    at babylon.skyMaterial.min.js:1
babylon.js:16 Babylon.js v4.1.0-beta.22 - WebGL2
saboteur.html:118 Uncaught TypeError: BABYLON.SkyMaterial is not a constructor
    at createScene (saboteur.html:118)
    at saboteur.html:859

 

Thanks a lot!@

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...