gcode-viewer
gcode-viewer copied to clipboard
Custom material
This includes a Phong based material with custom shaders
One more thing, where did u find the custom phongMaterial demo code? Thanks
I found it here: https://www.mtmckenna.com/posts/2017/11/06/extending-the-built-in-phong-material-shader-in-threejs
One more things, is any clue why each gcode I implemented is a triangular prism and not a cylinder like yours?

Maybe you have set renderer.radialSegments = 3
Then its only triangular. (but a little bit faster to render)
With 8 it looks more circular.