StandardMaterial style on ShaderMaterial

i would like to have a material that looks just like a StandardMaterial with a diffuseColor, but manipulate its vertices via a vertex shader.
The problem is that if I replace the material with a ShaderMaterial in order to do that, I don’t know how to retain the ‘look’ of the StandardMaterial in the fragment shader.

ideas?

Why not use: CustomMaterial - Babylon.js Documentation ?

https://playground.babylonjs.com/#DEV5Y5

2 Likes

i didn’t know about this, thanks!

1 Like

@igitz
hey