ozRocker Posted March 24, 2018 Share Posted March 24, 2018 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? Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted March 24, 2018 Share Posted March 24, 2018 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#2 // using albedoColor as color source. https://playground.babylonjs.com/#9T5Z53#1 Quote Link to comment Share on other sites More sharing options...
ozRocker Posted March 24, 2018 Author Share Posted March 24, 2018 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 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.