Skip to main content
deleted 86 characters in body; edited tags; edited title
Source Link
House
  • 73.3k
  • 17
  • 185
  • 273

How to add twouse multiple textures ,one is used as background and another one is used in a rotating cube!OpenGL ES 2.0?

I am working in OpenGL ES 2.0.

Now I am writing a demo for my project, I load two png images as my textures with the libSOIL

But now. I need to use one of them as the texture of my demo'sfor the background and and another one as the texture of a rotating cube.

In OpenGL ES 2.0, the adding texture operation is in the shader

But now. I don't know how to add the different textures to the different placeplaces in a shader

Who can help me! Thank you very much!. How do I do that?

How to add two textures ,one is used as background and another one is used in a rotating cube!

I am working in OpenGL ES 2.0.

Now I am writing a demo for my project, I load two png images as my textures with the libSOIL

But now I need to use one of them as the texture of my demo's background and another one as the texture of a rotating cube.

In OpenGL ES 2.0, the adding texture operation is in the shader

But now I don't know how to add the different textures to the different place in a shader

Who can help me! Thank you very much!

How to use multiple textures in OpenGL ES 2.0?

I am working in OpenGL ES 2.0.

I load two png images as my textures with the libSOIL. I need to use one of them as the texture for the background and another one as the texture of a rotating cube.

In OpenGL ES 2.0, the adding texture operation is in the shader. I don't know how to add the different textures to the different places in a shader. How do I do that?

Source Link

How to add two textures ,one is used as background and another one is used in a rotating cube!

I am working in OpenGL ES 2.0.

Now I am writing a demo for my project, I load two png images as my textures with the libSOIL

But now I need to use one of them as the texture of my demo's background and another one as the texture of a rotating cube.

In OpenGL ES 2.0, the adding texture operation is in the shader

But now I don't know how to add the different textures to the different place in a shader

Who can help me! Thank you very much!