22 lines
483 B
C#
22 lines
483 B
C#
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using LeTai.Asset.TranslucentImage;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace BITKit.UX
|
||
|
{
|
||
|
public class TranslucentService : MonoBehaviour
|
||
|
{
|
||
|
public static RenderTexture BlurredScreen;
|
||
|
[SerializeField] private TranslucentImageSource source;
|
||
|
[SerializeField] private RenderTexture blurredScreen;
|
||
|
private void LateUpdate()
|
||
|
{
|
||
|
source.Request();
|
||
|
BlurredScreen = blurredScreen = source.BlurredScreen;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|