refactor: rename skybox related parameters

This commit is contained in:
matixezor 2021-12-28 19:40:13 +01:00
parent 4c7e29991c
commit 0db1ae34cb

View File

@ -39,6 +39,7 @@ std::string skyboxTextures[6] = {
};
float skyboxVerticeParameter = 20.0f;
float skyboxBoundary = 19.5f;
float skyboxVertices[] = {
-skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter,
@ -86,8 +87,8 @@ float skyboxVertices[] = {
bool isInBoundaries(glm::vec3 nextPosition) {
float boundary = 19.5f;
return nextPosition.z > -boundary && nextPosition.z < boundary && nextPosition.y > -boundary && nextPosition.y < boundary && nextPosition.x < boundary && nextPosition.x > -boundary;
return nextPosition.z > -skyboxBoundary && nextPosition.z < skyboxBoundary && nextPosition.y > -skyboxBoundary &&
nextPosition.y < skyboxBoundary && nextPosition.x < skyboxBoundary && nextPosition.x > -skyboxBoundary;
}