Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/renderer/SkyManager.cpp
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | void SkyManager::LoadSkyTextures() | ||||
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MIN_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_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_T, GL_CLAMP_TO_EDGE); | ||||
#if CONFIG2_GLES | #if CONFIG2_GLES | ||||
#warning TODO: fix SkyManager::LoadSkyTextures for GLES | #warning TODO: fix SkyManager::LoadSkyTextures for GLES | ||||
#else | #else | ||||
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); | glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE); | ||||
#endif | #endif | ||||
glBindTexture(GL_TEXTURE_2D, 0); | glBindTexture(GL_TEXTURE_CUBE_MAP, 0); | ||||
/////////////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////////////// | ||||
} | } | ||||
/////////////////////////////////////////////////////////////////// | /////////////////////////////////////////////////////////////////// | ||||
// Switch to a different sky set (while the game is running) | // Switch to a different sky set (while the game is running) | ||||
void SkyManager::SetSkySet(const CStrW& newSet) | void SkyManager::SetSkySet(const CStrW& newSet) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator