Reviewed Vr stereo
This commit is contained in:
parent
71b86bf4d0
commit
84d0d21f23
@ -52,7 +52,7 @@ int main(void)
|
||||
};
|
||||
|
||||
// Load VR stereo config for VR device parameteres (Oculus Rift CV1 parameters)
|
||||
VrStereoConfig config = LoadVrStereoMode(device);
|
||||
VrStereoConfig config = LoadVrStereoConfig(device);
|
||||
|
||||
// Distortion shader (uses device lens distortion and chroma)
|
||||
Shader distortion = LoadShader(0, TextFormat("resources/distortion%i.fs", GLSL_VERSION));
|
||||
|
@ -163,7 +163,7 @@
|
||||
#include <stdio.h> // Required for: sprintf() [Used in OpenURL()]
|
||||
#include <string.h> // Required for: strrchr(), strcmp(), strlen()
|
||||
#include <time.h> // Required for: time() [Used in InitTimer()]
|
||||
#include <math.h> // Required for: tan() [Used in BeginMode3D()], atan2f() [Used in LoadVrStereoMode()]
|
||||
#include <math.h> // Required for: tan() [Used in BeginMode3D()], atan2f() [Used in LoadVrStereoConfig()]
|
||||
|
||||
#include <sys/stat.h> // Required for: stat() [Used in GetFileModTime()]
|
||||
|
||||
@ -2100,7 +2100,7 @@ void EndVrStereoMode(void)
|
||||
}
|
||||
|
||||
// Load VR stereo config for VR simulator device parameters
|
||||
VrStereoConfig LoadVrStereoMode(VrDeviceInfo device)
|
||||
VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device)
|
||||
{
|
||||
VrStereoConfig config = { 0 };
|
||||
|
||||
|
@ -969,7 +969,7 @@ RLAPI void BeginVrStereoMode(RenderTexture2D target, VrStereoConfig config); //
|
||||
RLAPI void EndVrStereoMode(void); // End stereo rendering (requires VR simulator)
|
||||
|
||||
// VR stereo config functions for VR simulator
|
||||
RLAPI VrStereoConfig LoadVrStereoMode(VrDeviceInfo device); // Load VR stereo config for VR simulator device parameters
|
||||
RLAPI VrStereoConfig LoadVrStereoConfig(VrDeviceInfo device); // Load VR stereo config for VR simulator device parameters
|
||||
RLAPI void UnloadVrStereoConfig(VrStereoConfig config); // Unload VR stereo config
|
||||
|
||||
// Shader management functions
|
||||
|
Loading…
x
Reference in New Issue
Block a user