<<< Uploading cube map textures     Index     What is a skybox? >>>

4. Texture parameters


  1. Use GL_TEXTURE_CUBE_MAP target texture

  2. Continue using magnification and minification filters

  3. Specify how to wrap each texture coordinate. For example,

    
    glTexParameteri( GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAG_FILTER, GL_LINEAR );
    glTexParameteri( GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MIN_FILTER, GL_LINEAR );
    glTexParameteri( GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE );
    glTexParameteri( GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE );
    glTexParameteri( GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE );
    
    

     


<<< Uploading cube map textures     Index     What is a skybox? >>>