-
Notifications
You must be signed in to change notification settings - Fork 129
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
samplerCube #22
Comments
Hi, sorry, unfortunately not. At the moment, cube textures are not supported. But I will try to add it for the next release. I'm planning to make the app as compatible as possible to Shadertoy because I want to use their API to import shaders. |
Do you have any preference/idea how you'd want to set/define the six textures for the cube? From a predefined selection (like Shadertoy) or maybe from only one source image (mapping?)? I think it'd be better if a user could create a cube texture from something. |
I think there is already something called a "vertical cross cube" format that can be used to group six sides of the cube into a single image. You can found examples by searching "vertical cross cube images" on google. |
Okay, that's just what I thought it would be :) I'll need to think a bit about how to implement that so that a user can create/use/compose textures in that format. Maybe I should just use it as a mask when importing a texture or something like that. |
I like the way people made on shdr http://shdr.bkcore.com/ but of course, I have no idea how could this be presented on a small mobile screen. |
Does shdr.bkcore.com support cube textures? Can't find anything. Or did you mean the UI in general? |
Ok, I think I misinterpreted things. Thought you were saying about applying shaders to 3d objects. |
I think you don't have to worry about how users are going to generate their images. You can just print a grid or an unfolded cube on top of the texture preview to show which part will be used. |
Yes, I think so too. I'm going to try that. @rafaellago: that's a bit further down on the list :) |
Sounds good, thank you! |
@markusfisch no worry, I'm quite pleased with how the app is at the moment. Maybe, camera integration, but since you are trying to make the app shadertoy compatible, I think that soon I'll see the feature. |
Available in 2.4.0, here's a link to the Beta: https://play.google.com/apps/testing/de.markusfisch.android.shadereditor |
Pushed 2.4.0 in production. Should be available in the next few hours. |
Oops too late. It works very well, thank you. However, I noticed that clicking the small insert button adds "sampler2D" instead of "samplerCube" but that's not a big issue. |
Oh my :) Will fix this tomorrow. Expect a 2.4.1 very soon. Thanks for reporting! |
Can you add some example cubemap as with the textures? Or give a link where 2016-06-02 22:40 GMT+02:00 Markus Fisch notifications@github.com:
|
Yes, that would also make very much sense. I'll try to find (or create) some. Will be in 2.4.1. |
Hi, I tried to play with samplerCube and textureCube() but it seems to stop the rendering. Is it possible to use that type of samplers ? (I'd like to import shaders I made on Shadertoy)
The text was updated successfully, but these errors were encountered: