Jump to content

BABYLON.SkyMaterial Stupid Question


Recommended Posts

could anybody help to have a look ?

i add the js reference in my project , but still can't use the BABYLON.SkyMaterial,

        <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.

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.


  • Recently Browsing   0 members

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