refactor: rename skybox related parameters
This commit is contained in:
parent
4c7e29991c
commit
0db1ae34cb
@ -39,6 +39,7 @@ std::string skyboxTextures[6] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
float skyboxVerticeParameter = 20.0f;
|
float skyboxVerticeParameter = 20.0f;
|
||||||
|
float skyboxBoundary = 19.5f;
|
||||||
|
|
||||||
float skyboxVertices[] = {
|
float skyboxVertices[] = {
|
||||||
-skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter,
|
-skyboxVerticeParameter, skyboxVerticeParameter, -skyboxVerticeParameter,
|
||||||
@ -86,8 +87,8 @@ float skyboxVertices[] = {
|
|||||||
|
|
||||||
|
|
||||||
bool isInBoundaries(glm::vec3 nextPosition) {
|
bool isInBoundaries(glm::vec3 nextPosition) {
|
||||||
float boundary = 19.5f;
|
return nextPosition.z > -skyboxBoundary && nextPosition.z < skyboxBoundary && nextPosition.y > -skyboxBoundary &&
|
||||||
return nextPosition.z > -boundary && nextPosition.z < boundary && nextPosition.y > -boundary && nextPosition.y < boundary && nextPosition.x < boundary && nextPosition.x > -boundary;
|
nextPosition.y < skyboxBoundary && nextPosition.x < skyboxBoundary && nextPosition.x > -skyboxBoundary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user