实现如下:
Shader "Refract"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {
}
_RefractColor("Refraction Color", Color) = (1,1,1,1)
_RefractAmount("Refraction Amount",Range(0,1)) = 1
_RefractRatio("Refraction Ratio",Range(0.1,1)) = 0.5
_Cubema