New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Error when using MeshLambertMaterial #182
Comments
Sounds like possibly something going wrong with the shader rewriting, but it's not obvious to me at first glance. And I don't know why it would be inconsistent based on other objects in the scene ... very curious. If you can come up with a minimal test case that would help greatly. If not, maybe pasting the contents of the final shaders from the log would give some clues? |
Ah I bet this is due to these lines which rename usages of the This seems like it would fail whenever there are spot lights in the scene, might the "other objects in the scene" trigger happen to be presence of spot lights? |
Ahhhh, I see. Thank you. I haven't had time to verify this but it's totally plausible that the "other objects in the scene" do have spotlights. (They are GLBs, so they can contain all manner of things.) I'll try and inspect them soon. |
Yep, I can reproduce the bug with MeshLambertMaterial and a SpotLight in the scene, that's definitely the problem. Should be a pretty simple fix. |
Wow! Cool! You found that with very little to go on :-P Thank you! |
Occasionally, when I create a TroikaThreeText with a MeshLambertMaterial, the text does not render and I see this error:
However, this bug does not occur if the TroikaThreeText is the only object in my scene. It seems to involve some interaction between the TroikaThreeText and other objects in the scene. I will work on narrowing this down, but I'm wondering if anything sticks out to you about this error.
Sincerely loving TroikaThreeText! Thank you!
The text was updated successfully, but these errors were encountered: