I,m trying to develop something like this using Babylon.js (The example is implemented in Unity 3D):
I suppose this can be implemented using a shader. The user can move a sphere with the inverted normals, and the shader will have to calculate if this sphere is painted depending on its position in the z buffer.
Is it possible to do this using babylon ShaderMaterial?
Thanks in advance.