three.quarks icon indicating copy to clipboard operation
three.quarks copied to clipboard

MeshStandardMaterial doesn't work anymore with texture assigned

Open marwie opened this issue 8 months ago • 6 comments

Describe the bug ParticleSystems using a mesh standard material with billboards did work previously ("0.10.8") and stopped working in latest 0.15.5 (not sure which version exactly). The texture is randomly chosen from any material in the scene it seems (or perhaps the last texture bound?)

To Reproduce Steps to reproduce the behavior:

  1. Create billboard particle system with standard material
  2. Assign some texture
  3. Create some other objects in the scene using standard material + some other texture
  4. Observe error

Expected behavior Correct texture is chosen

Screenshots

Expected:

Image

Actual:

Image

It's working again if i use a meshbasicmaterial

Image

Stepping through:

Image

https://github.com/user-attachments/assets/cfabd2f1-669c-4ea4-bf53-b017776b32ce

Desktop (please complete the following information):

  • OS: win10
  • Browser chrome Version 132.0.6834.160 (Official Build) (64-bit)
  • Version 0.15.5

Additional context It looks like the SpriteBatch does set the map define but never assigns the texture

marwie avatar Feb 03 '25 14:02 marwie