worldmaking / mischmasch

https://www.alicelab.world/msvr
MIT License
9 stars 1 forks source link

custom shader is not interacting with scene ambient lighting #214

Closed michaelpalumbo closed 1 year ago

michaelpalumbo commented 1 year ago

see main.js in const material

michaelpalumbo commented 1 year ago

see https://threejs.org/docs/index.html#api/en/materials/ShaderMaterial and figure out how to set .lights correctly

michaelpalumbo commented 1 year ago

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?

michaelpalumbo commented 1 year ago

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

michaelpalumbo commented 1 year ago

reverted to 0.4.x version of op meshes