-
Notifications
You must be signed in to change notification settings - Fork 25
Add renderer for hydra #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At first glance everything looks good!
Hopefully the amount of code duplication between targets wasn't too annoying, we wanted to make sure that too much structure didn't make it difficult to implement new targets.
Generally we'd prefer to build the dist packages ourselves, but in this case it should be fine.
And don't mind the GA tests not passing, we need to fix those.
Thanks again!
I'll let @torinmb take a took too and then we should be good to merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this for webgl1 compatibility? We did migrate shaderpark to webgl2 a while ago.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this was the only thing in sculptureStarterCode
that I needed to change, so I chose to avoid duplicating the entire thing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I suspect it's possible there may be other places in the library that could have issues with webg1 besides this line. But I'm happy to merge now and just fix them later if they show up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PWhiddy I can always undo the dist changes, figured they might be done adhoc since they're committed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this was the only thing in sculptureStarterCode
that I needed to change, so I chose to avoid duplicating the entire thing here.
Uh oh!
There was an error while loading. Please reload this page.
The biggest change here is duplicating
minimalHeader
andfragFooter
and tweaking the GLES version (regl doesn't support 300) and tweaking things to work in that version.Basic API example:
Full demo: https://hydra.ojack.xyz/?sketch_id=Lovo7ySixRsokMQI