mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:42:53 +02:00
Fixing the skybox, still issues with the lights
This commit is contained in:
parent
9e91926426
commit
9adbb42a6c
3 changed files with 5 additions and 3 deletions
|
@ -80,7 +80,7 @@ vec3 getEyeWorldPos() {
|
||||||
|
|
||||||
bool cam_isStereo() {
|
bool cam_isStereo() {
|
||||||
#ifdef GPU_TRANSFORM_IS_STEREO
|
#ifdef GPU_TRANSFORM_IS_STEREO
|
||||||
return true;
|
return getTransformCamera()._stereoInfo.x > 0.0;
|
||||||
#else
|
#else
|
||||||
return _camera._stereoInfo.x > 0.0;
|
return _camera._stereoInfo.x > 0.0;
|
||||||
#endif
|
#endif
|
||||||
|
@ -89,7 +89,7 @@ bool cam_isStereo() {
|
||||||
float cam_getStereoSide() {
|
float cam_getStereoSide() {
|
||||||
#ifdef GPU_TRANSFORM_IS_STEREO
|
#ifdef GPU_TRANSFORM_IS_STEREO
|
||||||
#ifdef GPU_TRANSFORM_STEREO_CAMERA
|
#ifdef GPU_TRANSFORM_STEREO_CAMERA
|
||||||
return float(_stereoSide);
|
return getTransformCamera()._stereoInfo.y;
|
||||||
#else
|
#else
|
||||||
return _camera._stereoInfo.y;
|
return _camera._stereoInfo.y;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -36,4 +36,6 @@ void main(void) {
|
||||||
|
|
||||||
// Position is supposed to come in clip space
|
// Position is supposed to come in clip space
|
||||||
gl_Position = vec4(inPosition.xy, 0.0, 1.0);
|
gl_Position = vec4(inPosition.xy, 0.0, 1.0);
|
||||||
|
|
||||||
|
<$transformStereoClipsSpace(cam, gl_Position)$>
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ out vec4 _texCoord0;
|
||||||
|
|
||||||
void main(void) {
|
void main(void) {
|
||||||
if (sphereParam.w != 0.0) {
|
if (sphereParam.w != 0.0) {
|
||||||
|
|
||||||
// standard transform
|
// standard transform
|
||||||
TransformCamera cam = getTransformCamera();
|
TransformCamera cam = getTransformCamera();
|
||||||
TransformObject obj = getTransformObject();
|
TransformObject obj = getTransformObject();
|
||||||
|
|
Loading…
Reference in a new issue