Jump to content

Showing the fallback Texture


Recommended Posts

Hi,

I saw that the engine has a fallback texture (the red-black checkerboard texture).

Like in this example, where I deliberately try to load a non existing texture.

https://www.babylonjs-playground.com/#CZ9EMB

 

Is there a way to assign this fallback texture to a material via the API on purpose? I want to show it in certain scenarios even when I am not trying to load a texture, but also if I am trying to create an invalid material.

We have a high level material description that must follow some rules and I want to unify the appearance of invalid materials in the scene.

Thus I was thinking using what is already available would be a good way to do it. However, I don't want to cause it to perform an http request, so the approach in the playground is not really satisfying.

 

Link to post
Share on other sites
  • 3 months later...

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...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...