mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #2070 from Azaezel/OVRoops
fix for overdark VR scene rendering
This commit is contained in:
commit
afdf86f220
|
|
@ -430,7 +430,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;
|
||||
|
|
@ -441,7 +441,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…
Reference in a new issue