下面这段代码是官网的示例代码,但是我实在找不到cube_map.vert和cube_map.frag这两个文件怎么办啊?另外这两个文件用什么创建啊?
auto textureCube = TextureCube::create(“skybox/left.jpg”, “skybox/right.jpg”, “skybox/top.jpg”, “skybox/bottom.jpg”, “skybox/front.jpg”, “skybox/back.jpg”);
// set cube map texture parameters
Texture2D::TexParams tRepeatParams;
tRepeatParams.magFilter = GL_NEAREST;
tRepeatParams.minFilter = GL_NEAREST;
tRepeatParams.wrapS = GL_MIRRORED_REPEAT;
tRepeatParams.wrapT = GL_MIRRORED_REPEAT;
textureCube->setTexParameters(tRepeatParams);
// create and set our custom shader
auto shader = GLProgram::createWithFilenames(“cube_map.vert”, “cube_map.frag”);
auto _state = GLProgramState::create(shader);
// bind cube map texture to uniform
state->setUniformTexture(“u_cubeTex”, textureCube);