I'm hoping to create a 1-bit or black-white colour effect with Three.js where all shadows (cast, received and self) are visible/black but all materials have flat white shading and blend with the (also white) background. I tried using THREE.MeshBasicMaterial
but it doesn't like shadows and THREE.ShadowMaterial
but it makes the material invisible and I need it to be there (but constantly 'flat'), like in this example:
In terms of shadows, they should also behave in 1-bit fashion and only be solid (when over 50% gray?) or not visible.
Any ideas of how to achieve such an effect? Anyone has a shader to share?