diff options
| author | Ray <[email protected]> | 2021-10-20 11:53:52 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-10-20 11:53:52 +0200 |
| commit | c00bc63b470ba9dd7ad398336a54072c3b8c1d8e (patch) | |
| tree | 73a261de304e6232b6e01509520a6aa40940c9df /examples/core/core_vr_simulator.data | |
| parent | f3cfe586c03772632d5f5c88ffa66ef5d162a4bb (diff) | |
| download | raylib.com-c00bc63b470ba9dd7ad398336a54072c3b8c1d8e.tar.gz raylib.com-c00bc63b470ba9dd7ad398336a54072c3b8c1d8e.zip | |
REVIEWED: core_vr_simulator
Diffstat (limited to 'examples/core/core_vr_simulator.data')
| -rw-r--r-- | examples/core/core_vr_simulator.data | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/core/core_vr_simulator.data b/examples/core/core_vr_simulator.data index 112cbcb..f72c689 100644 --- a/examples/core/core_vr_simulator.data +++ b/examples/core/core_vr_simulator.data @@ -17,7 +17,7 @@ uniform vec2 leftScreenCenter; uniform vec2 rightScreenCenter; uniform vec2 scale; uniform vec2 scaleIn; -uniform vec4 hmdWarpParam; +uniform vec4 deviceWarpParam; uniform vec4 chromaAbParam; void main() @@ -27,7 +27,7 @@ void main() vec2 screenCenter = fragTexCoord.x < 0.5? leftScreenCenter : rightScreenCenter; vec2 theta = (fragTexCoord - lensCenter)*scaleIn; float rSq = theta.x*theta.x + theta.y*theta.y; - vec2 theta1 = theta*(hmdWarpParam.x + hmdWarpParam.y*rSq + hmdWarpParam.z*rSq*rSq + hmdWarpParam.w*rSq*rSq*rSq); + vec2 theta1 = theta*(deviceWarpParam.x + deviceWarpParam.y*rSq + deviceWarpParam.z*rSq*rSq + deviceWarpParam.w*rSq*rSq*rSq); vec2 thetaBlue = theta1*(chromaAbParam.z + chromaAbParam.w*rSq); vec2 tcBlue = lensCenter + scale*thetaBlue; |
