Closed michaelpalumbo closed 1 year ago
see https://threejs.org/docs/index.html#api/en/materials/ShaderMaterial and figure out how to set .lights correctly
ah, part of the issue is that the ins and outs of the shader are not defined and updated in the script. new problem: how to verify mischasch-web is instantiating ops into the scene without seeing them. might need to build up the document/automerge manipulation first?
made lots of progress with this. followed https://learnopengl.com/Getting-started/Shaders to understand the basics. the shader code is now inside of /web/assets/shaders.js
reverted to 0.4.x version of op meshes
see main.js in
const material