mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-26 06:49:09 -06:00
Merge branch 'develop' of https://github.com/OpenSpace/OpenSpace-Development into develop
This commit is contained in:
@@ -53,11 +53,7 @@ float pscDepth(vec4 position) {
|
||||
// For now: simply convert power scaled coordinates to a linear scale.
|
||||
// TODO: get rid of power scaled coordinates and use scale graph instead.
|
||||
// return (position.w + log(abs(position.z) + 1/pow(k, position.w))/log(k)) / 27.0;
|
||||
if (position.z < 0) {
|
||||
return safeLength(pscToLinear(position));
|
||||
} else {
|
||||
return -safeLength(pscToLinear(position));
|
||||
}
|
||||
return safeLength(pscToLinear(position));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user