mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
fix for overdark VR scene rendering
This commit is contained in:
parent
21552a06dd
commit
0c35874068
1 changed files with 2 additions and 2 deletions
|
|
@ -435,7 +435,7 @@ bool OpenVRRenderState::setupRenderTargets(GFXDevice::GFXDeviceRenderStyles mode
|
|||
}
|
||||
|
||||
GFXTexHandle stereoTexture;
|
||||
stereoTexture.set(newRTSize.x, newRTSize.y, GFXFormatR8G8B8A8, &VRTextureProfile, "OpenVR Stereo RT Color");
|
||||
stereoTexture.set(newRTSize.x, newRTSize.y, GFXFormatR8G8B8A8_SRGB, &VRTextureProfile, "OpenVR Stereo RT Color");
|
||||
mStereoRenderTexture = stereoTexture;
|
||||
|
||||
GFXTexHandle stereoDepthTexture;
|
||||
|
|
@ -446,7 +446,7 @@ bool OpenVRRenderState::setupRenderTargets(GFXDevice::GFXDeviceRenderStyles mode
|
|||
mStereoRT->attachTexture(GFXTextureTarget::Color0, stereoTexture);
|
||||
mStereoRT->attachTexture(GFXTextureTarget::DepthStencil, stereoDepthTexture);
|
||||
|
||||
mOutputEyeTextures.init(newRTSize.x, newRTSize.y, GFXFormatR8G8B8A8, &VRTextureProfile, "OpenVR Stereo RT Color OUTPUT");
|
||||
mOutputEyeTextures.init(newRTSize.x, newRTSize.y, GFXFormatR8G8B8A8_SRGB, &VRTextureProfile, "OpenVR Stereo RT Color OUTPUT");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue