mrdoob/three.js — Issue #790: Switching material at runtime
Author: idflood
Created: 2011-11-23 21:53:02+00:00
State: open

Is it possible to change the material of a mesh at runtime? I was using the second solution before but updating three.js broke this I think. Is there anything I'm missing?

Simply setting the material property doesn't work:
http://jsfiddle.net/GKCx6/13/

Recreating the mesh doesn't help:
http://jsfiddle.net/GKCx6/14/