I’m working with different AR platform like spark AR and lens studio . And I can create my custom shader for each software . But for DeepAr studio it is more complicated and no tutorials available .
Please I need to learn creating a custom shader for DeepAr studio . I have read a lot about bgfx but it should be explained practically on DeepAr studio. For example converting any open source shader from shaderToy or other to DeepAr studio
Hi @Abdelhamid_3wais
We are working on simplifying the shader creation and will be making a tutorial soon. In the meantime, you can tell us more about what exactly you need and we can try to give you some specific help
Thanks Jelena
I want to understand how to create a custom fragment shader to perform a specific function . For example shaderToy has a lot of open source stuff for learning but there are a lot of differences between it and DeepAr shaders depending on bgfx libraries . It is very complicated for me. I used to work in glsl with lens studio or spark AR studio. I need a video explaining write custom shaders for DeepAr studio. I think that the explanation video will be better than written documentation .
We are working on some improvements to the shader creation and we intend to create some tutorial videos when those improvements are released. Do you have a specific shader you would like to translate so we can try and help you?
Yes please
Something like this will be a nice filter
This code contains many things such textures inputs and sampling it will good add some input parameters
To the shader .
Of course, with respect to the rights of the owner of the shader, but this is for the purpose of education and understanding and not for use in another way
That shader shouldn’t be translated as is, but there also isn’t a 1:1 translation that only uses a shader.
Some things that should be easy to translate are:
iResolution - we use u_cameraSize
iTime - u_currentTime
For texture sampling we use
vec4 color = texture2D(s_tex v_texcoord0);
Animated textures aren’t supported yet in the new studio but in general, we use png sequence animations controlled by either the play animation component or the animation controller
And we also have a touch component to handle touches.
Do you have any simpler examples of shaders that are your work?