ShaderShowcaseApp icon indicating copy to clipboard operation
ShaderShowcaseApp copied to clipboard

need some help.

Open MRfantastic3DGamer opened this issue 2 years ago • 2 comments

Hi, I learned a lot by studying this app. I just wanted to thank you for making this app and also ask for a little help. Can you explain how we can use one or multiple textures inside an application. I just can't get my head around how we can push the data of bitmap into a shader.

MRfantastic3DGamer avatar Mar 16 '24 14:03 MRfantastic3DGamer

Thank you for your kind review!!

You can do that using the GLUtils.texImage2D method. https://developer.android.com/reference/android/opengl/GLUtils#texImage2D(int,%20int,%20android.graphics.Bitmap,%20int)

I haven't used textures much, but this might help. ^

thelumiereguy avatar Apr 06 '24 22:04 thelumiereguy

thank you, I got it working with texture resources but there are still some errors, Il figure it out eventually. but again thanks, this app kind of gave me the basic idea of how gles works with android. If you like you can take a look at my project

MRfantastic3DGamer avatar Apr 12 '24 15:04 MRfantastic3DGamer