gcode-viewer icon indicating copy to clipboard operation
gcode-viewer copied to clipboard

Custom material

Open aligator opened this issue 3 years ago • 4 comments

This includes a Phong based material with custom shaders

aligator avatar Apr 09 '22 10:04 aligator

One more thing, where did u find the custom phongMaterial demo code? Thanks

jane-rose avatar Apr 18 '22 12:04 jane-rose

I found it here: https://www.mtmckenna.com/posts/2017/11/06/extending-the-built-in-phong-material-shader-in-threejs

aligator avatar Apr 18 '22 16:04 aligator

One more things, is any clue why each gcode I implemented is a triangular prism and not a cylinder like yours? 051C8B34-9745-4FFA-AEE4-3F3424558637

jane-rose avatar Apr 20 '22 12:04 jane-rose

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

aligator avatar Apr 20 '22 14:04 aligator