Skip to content
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

Ability to load an SF shader without a callback? #1

Open
bhouston opened this issue Aug 17, 2015 · 1 comment
Open

Ability to load an SF shader without a callback? #1

bhouston opened this issue Aug 17, 2015 · 1 comment

Comments

@bhouston
Copy link

I would like to load a SF shader directly assuming that we are responsible for fetching the *.json file.

@AndrewRayCode
Copy link
Owner

You should be able to out of the box, internally the runtime just calls .add with the raw json: https://github.com/DelvarWorld/ShaderFrog-Runtime/blob/master/ShaderRuntime.js#L56 For remote json loading the runtime just re-uses THREE.js XHRLoader.

I'll add .add to the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants