Jump to content

Babylon Dynamic Texture uses only 1 pixel


WebBowser
 Share

Recommended Posts

Why would a Dynamic Texture in Babylon wrap only a single pixel (the lower-left pixel of the texture) all the way around a mesh?

For example:

https://www.babylonjs-playground.com/#JUKXQD#76

...which creates a dynamic texture with a red square on a yellow background - but only the lower-left yellow pixel is used on the entire mesh.

If you remove the comments from the code that draws a single blue pixel in the lower left corner, you will see the mesh turn all blue.

Thanks in advance for any insight!

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