mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 04:28:07 +02:00
Fix on unpackDeferredPosition
This commit is contained in:
parent
379df87d0c
commit
bd0e13463d
2 changed files with 1 additions and 3 deletions
|
@ -127,9 +127,8 @@ vec4 unpackDeferredPosition(DeferredFrameTransform deferredTransform, float dept
|
|||
}
|
||||
texcoord.x *= 2.0;
|
||||
}
|
||||
float Zeye = evalZeyeFromZdb(depthValue);
|
||||
|
||||
return vec4(evalEyePositionFromZeye(side, Zeye, texcoord), 1.0);
|
||||
return vec4(evalEyePositionFromZdb(side, depthValue, texcoord), 1.0);
|
||||
}
|
||||
|
||||
vec4 unpackDeferredPositionFromZeye(vec2 texcoord) {
|
||||
|
|
|
@ -123,7 +123,6 @@ float evalZeyeFromZdb(float depth) {
|
|||
}
|
||||
|
||||
vec3 evalEyeNormal(vec3 C) {
|
||||
//return normalize(cross(dFdy(C), dFdx(C)));
|
||||
return normalize(cross(dFdx(C), dFdy(C)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue