Jump to content

[SOLVED] Can't get KHR_MATERIALS_UNLIT working in GLB file


ozRocker
 Share

Recommended Posts

I'm trying to display a GLB mesh and make it unlit.  I built the GLB file with KHR_MATERIALS_UNLIT.  I can confirm by looking at the binary and you can see those actual words in there.  Its meant to look like this:

but it looks like this instead https://playground.babylonjs.com/#9T5Z53

Does anyone know how to make this unlit?

Link to comment
Share on other sites

6 minutes ago, aWeirdo said:

Hi @ozRocker

I'm not quite sure if this is what you mean, using disableLighting & emissiveTexture/Color will stop the mesh being affected by light shaders,
https://playground.babylonjs.com/#9T5Z53#1

:o  That is the greatest solution eva!!!  What a champ!

Thanks mate.  I tried playing around with every property but I didn't know about this 

Link to comment
Share on other sites

  • ozRocker changed the title to [SOLVED] Can't get KHR_MATERIALS_UNLIT working in GLB file

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