Skip to content

GLSL/Shader materials support #3956

Feb 24, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

There's currently no way to do this in Spoke. You'd need to modify the glTF export pipeline to define a way to export shader materials from Spoke and import in Hubs. You could also start by directly implementing the shader material in Hubs.

I think the Skybox node would be a good reference on one way to implement a custom material.

https://github.com/mozilla/Spoke/blob/master/src/editor/nodes/SkyboxNode.js
https://github.com/mozilla/Spoke/blob/master/src/editor/objects/Sky.js
https://github.com/mozilla/Spoke/blob/master/src/ui/properties/SkyboxNodeEditor.js
https://github.com/mozilla/Spoke/blob/master/src/config.js#L81
https://github.com/mozilla/hubs/blob/00cc63e58079bebd63f3115b49038da60…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fviz
Comment options

Answer selected by fviz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants