Jump to content

Canvas2D npm package missing


Recommended Posts

If I look at https://www.npmjs.com/~babylonjs and inside the provided babylonjs-2.5.0 npm package, I observe that I have no way to access the Canvas2D project’s API.

I think the babylonjs npm user should publish a Canvas2D package so that we can use it in webpack projects and I think this should be published by the official babylonjs npm user. Thanks!

Link to comment
Share on other sites

As a followup, wondering if the extensions can be included in the npm package for babylonjs. It’d be nice to be able to do a deep require like require('babylonjs/extensions/materialsLibrary/water'). And putting the .fx files in there would probably make sense. I would have to figure out how to get my webpack setup to work with shaders, yet to do that. But if the files could at least be in the npm package so that I can access them at all, it would make my webpack project much easier.


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