When Apply glow shader to existing FBX file, it stops animation

Hi,

I am new to three.js and trying to apply glow shader on existing FBX file and it stops animation. Existing FBX file has MeshPhongMaterial and to apply glow shader i need to use ShaderMaterial.
Actual FBX file is created in Maya by 3d developer and i need create simillar look of Maya shaders using three.js as they cannot be exported. I am using FBXloader to load FBX file.

Please advice me with some solution.

You need to enable skinning, if you wrote your shader from scratch you might didn’t added the necessary includes. To stay compatible with THREE it is easier to extend a standard material with your shader material.

You can do this manually or with a helper like this Function to extend standard Materials

2 Likes