public void Reconstruct(Image bright, Image raw)
        {
            BrightTexture.Reconstruct(bright, GLOBAL_BRIGHT_TEXTURE_NAME, GLOBAL_BRIGHT_PIXEL_SIZE_NAME);
            RawTexture.Reconstruct(raw, GLOBAL_RAW_TEXTURE_NAME, GLOBAL_RAW_PIXEL_SIZE_NAME);

            Distortion.Reconstruct(raw, GLOBAL_DISTORTION_TEXTURE_NAME);

            switch (raw.Format)
            {
            case Image.FormatType.INFRARED:
                Shader.DisableKeyword(RGB_SHADER_VARIANT_NAME);
                Shader.EnableKeyword(IR_SHADER_VARIANT_NAME);
                break;

            case (Image.FormatType) 4:
                Shader.DisableKeyword(IR_SHADER_VARIANT_NAME);
                Shader.EnableKeyword(RGB_SHADER_VARIANT_NAME);
                break;

            default:
                Debug.LogWarning("Unexpected format type " + raw.Format);
                break;
            }

            _isStale = false;
        }
 public void Reconstruct(Image image)
 {
     TextureData.Reconstruct(image, GLOBAL_RAW_TEXTURE_NAME, GLOBAL_RAW_PIXEL_SIZE_NAME);
     Distortion.Reconstruct(image, GLOBAL_DISTORTION_TEXTURE_NAME);
     _isStale = false;
 }
Esempio n. 3
0
 public void Reconstruct(Image image, bool setShaderGlobal = true)
 {
     TextureData[((int)image.DeviceID) - 1].Reconstruct(image, GLOBAL_RAW_TEXTURE_NAME, GLOBAL_RAW_PIXEL_SIZE_NAME, setShaderGlobal);
     Distortion.Reconstruct(image, GLOBAL_DISTORTION_TEXTURE_NAME);
     _isStale = false;
 }