I have a Collada object which i load per Three.js into my scene. Now I want to change some vertex positions of the model in the vertex shader, which is no problem. But with this I have to skip the exported collada material and take a ShaderMaterial. The problem is now that I have to calculate the complete lighting of the scene in my fragment shader. Before, with the collada material, the complete lighting was calculated by the framework by using a directional light and a hemisphere light.
So my question is, if there is a solution where I can leave the fragmentShader untouched and all the colors are calculated as if I would use no ShaderMaterial.
I tried to use THREE.ShaderLib and pass only the fragmentShader of the phong shader and my own vertexShader. But this gave only errors that not the same varyings are defined in both shaders.