-
Notifications
You must be signed in to change notification settings - Fork 264
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
custom textures #40
base: master
Are you sure you want to change the base?
custom textures #40
Conversation
oh yes, demo link 🍃 |
Bump! This is very cool. would love to see this merged. Should they be upside down though or do I just not understand sampler 2D?
This example makes the upside down thing more obvious |
you can do gl.pixelStorei (gl.UNPACK_FLIP_Y_WEBGL, xxx) to flip it the way you want to. |
actually, why not add it, indeed... |
ok done, but... crap:
|
ha, so github does understand forced push ) |
I guess @mrdoob would merge this way faster if I did not use dick pic as example 😉 |
Just use some other picture: head |
@hermanbanken well, maybe @mrdoob hates the idea any way. you know, like in old demoscene days, using bitmaps instead of code was frowned upon |
Maybe @mrdoob doesn't want glslsandbox to turn into Shader Toy. Also links to images could go dead meaning more broken shaders. PS: Would be cool to see some shaders that mimic oldskool demoscene stuff. |
Hmm, the issue is that this wouldn't scale and it would increase the shader size considerably... |
@mrdoob if you use data url, yes. but, as you see, imgur url works just as good |
@mrdoob and, in fact, any other host that allows cross-domain access |
subj :)