diff --git a/wrappers/unity/Assets/RealSenseSDK2.0/Scripts/RsStreamTextureRenderer.cs b/wrappers/unity/Assets/RealSenseSDK2.0/Scripts/RsStreamTextureRenderer.cs index 68205efaa7..f5dc50e817 100644 --- a/wrappers/unity/Assets/RealSenseSDK2.0/Scripts/RsStreamTextureRenderer.cs +++ b/wrappers/unity/Assets/RealSenseSDK2.0/Scripts/RsStreamTextureRenderer.cs @@ -180,7 +180,9 @@ private void ProcessFrame(VideoFrame frame) } using (var p = frame.Profile) { - texture = new Texture2D(frame.Width, frame.Height, Convert(p.Format), false, true) + bool linear = (QualitySettings.activeColorSpace != ColorSpace.Linear) + || (p.Stream != Stream.Color && p.Stream != Stream.Infrared); + texture = new Texture2D(frame.Width, frame.Height, Convert(p.Format), false, linear) { wrapMode = TextureWrapMode.Clamp, filterMode = filterMode