applying texture to Cube, different texture on each face of cube
问题 I'm trying to apply different texture on cube with shaders using samplerCube and textureCube. But I'm not able to get texture drawn on faces of cube only single color is appearing. Screenshots of output Below is my shader code: Vertex Shader String strVShader = "attribute vec4 a_position;" + "uniform mat4 u_VPMatrix;" + "attribute vec3 a_normal;" + "varying vec3 v_normal;" + "void main()" + "{" + "gl_Position = u_VPMatrix * a_position;" + "v_normal = a_normal;" + "}"; Fragment Shader String