小白求助

下面这段代码是官网的示例代码,但是我实在找不到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);

求分享一下.vert和.frag后缀名的文件

blur.zip (1.6 KB)自取

谢谢, 有细节图吗? 下的资源包里面没有

如果可以i的话都分享一下 谢谢大佬

工具类

使用

大佬 要不加个Q 有时间交流一下?