-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
material.js shader() example / remove Mandel #3722
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
Cool! I think I had a bit of a misunderstanding about what you were going to do but this looks good. There is something about this feels like it makes more sense as a
would explain setUniform well. But what you have here already also works as a |
@stalgiag What you have makes perfect sense for setUniform. However it seems to not fully translate the function of I highly agree with your final note. I think keeping this example PR as is for Perhaps we can point the reader to check the other reference example to see the alternative? Do you think this is appropriate for the docs examples? If so should I just add a comment in the example code:
Edit: also should I close this PR and submit a new one with setUniform? Or would it be better to do two PRs. I guess the latter? Thanks again @stalgiag |
That sounds good to me. I don't think there are other instances of this kind of cross-referencing examples thing but I think it works well as an instructional tool. It is your call about whether to do them as separate PRs. I don't think it is completely necessary since you are editing two related examples. As an sidenote, this is mostly personal preference but you might find it easier to work with a branch (eg hsab/p5js:shaderMethodExamples). I find it makes keeping my work-in-progress inline with master a bit more manageable. |
Yeah branching is definitely the way to go. I didn't intend to really commit or do PR was mostly checking the codebase and the grunt tasks and decided to jsut give docs:dev a try. Ended up requesting a PR. Will close this one, branch and recommit the changes. |
addresses #1954
resolves #3720
extends the loadShader example to allow for toggling between 2 shaders on mouse click/press.
@stalgiag let me know what you think 👍