I'd like to achieve what is described in https://stackoverflow.com/a/37093210 with pythreejs
in JupyterLab instead of pure javascript.
Can I somehow subclass MeshPhongMaterial in python to add this change?
I am also happy to go the ShaderMaterial
route (see https://github.com/jupyter-widgets/pythreejs/blob/master/examples/Shaders.ipynb) , if I would understand how to use vertexShader
and fragmentShader
so that is roughly looks like MeshStandarMaterial
or MeshPhongMaterial
(I need ambient and point lights and DoubleSide
light support).
Of course, any other idea that gets me to what is depicted in https://stackoverflow.com/a/37093210 with pythreejs
is welcome.
It was surprisingly easy to port the
SectionHelper
mentioned in the answer https://stackoverflow.com/a/38186639The result is then as expected
clipped torusknot