-
Notifications
You must be signed in to change notification settings - Fork 246
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
textures #29
Comments
Well from the looks of it, it looks like texture2D is supported within the editor, but currently can't be used for anything since there is no option to import image textures. I think on the main page of glslEditor, there is a request to create a texture editor, so I can look into this from my end and see what I can do. |
that'd be awesome. |
Hi! GlslEditor supports textures... you just have to write the URL as a comment next to texture uniform. http://editor.thebookofshaders.com/?log=180130173243 Also watch out for CORS! |
Oh sweet !
…On Tue, 30 Jan 2018 at 17:26, Patricio Gonzalez Vivo < ***@***.***> wrote:
Hi! GlslEditor supports textures... you just have to write the URL as a
comment next to texture uniform.
http://editor.thebookofshaders.com/?log=180130173243
Also watch out for CORS!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAADNNMVjXIBjevj_X_XCP_CG4QWev92ks5tP1DPgaJpZM4RpPVz>
.
|
Hey @patriciogonzalezvivo , I noticed that this feature was not known to many, myself included. To rectify this, I am currently writing some code that clearly shows to the user that you can import images via an "Import" button. The "Import" button contains two dropdowns, one says "Import Image URL..." and the other says "Import Image from Local Storage..." Once the image is imported, the image will have a texture uniform of "u_tex" + whatever number of image that is imported into the scene. Is it okay if I maintain my course in writing this code and submit a pull request for this? I will need a couple more hours to fully implement this feature. Thanks for your hard work! |
Is video possible as a texture ?
…On Thu, 1 Feb 2018 at 00:42, ChronoAndross ***@***.***> wrote:
Hey @patriciogonzalezvivo <https://github.com/patriciogonzalezvivo> ,
I noticed that this feature was not known to many, myself included. To
rectify this, I am currently writing some code that clearly shows to the
user that you can import images via an "Import" button. The "Import" button
contains two dropdowns, one says "Import Image URL..." and the other says
"Import Image from Local Storage..." Once the image is imported, the image
will have a texture uniform of "u_tex" + whatever number of image that is
imported into the scene.
Is it okay if I maintain my course in writing this code and submit a pull
request for this? I will need a couple more hours to fully implement this
feature.
Thanks for your hard work!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAADNNOPQpNyn9XfZswcBhaeHI95Sv8hks5tQQhigaJpZM4RpPVz>
.
|
@weepy yes... any format that the browser can transform into a texture is supported |
@patriciogonzalezvivo I can post the UI when I get home (just leaving work now) but yes, if the file can be opened successfully, it should be placed as a comment next to the uniform named "utex_(#texture)", the newly created texture based on the user's imported image. And then your code will run as usual. |
sounds great |
Is it possible to import image textures ?
The text was updated successfully, but these errors were encountered: