Пример #1
0
 private void Start()
 {
     this.CameraSetup();
     SSSSS.ToggleKeyword(this.UseDepthTest, "DEPTH_TEST_ON", "DEPTH_TEST_OFF");
     SSSSS.ToggleKeyword(this.Gamma2Linear, "GAMMA2LINEAR_ON", "GAMMA2LINEAR_OFF");
     SSSSS.ToggleKeyword(this.UseComplexSpecular, "KELEMEN_KALOS_ON", "KELEMEN_KALOS_OFF");
 }
Пример #2
0
 private void OnEnable()
 {
     SSSSS.Instance  = this;
     this.InitialFOV = Camera.main.fieldOfView;
     if (SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.ARGBHalf))
     {
         this.RTT_Format = RenderTextureFormat.ARGBHalf;
     }
     else if (SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.ARGBFloat))
     {
         this.RTT_Format = RenderTextureFormat.ARGBFloat;
     }
     else
     {
         this.RTT_Format = RenderTextureFormat.ARGB32;
     }
     Camera.main.depthTextureMode |= DepthTextureMode.DepthNormals;
     this.Shader_SSSSS_Camera      = Shader.Find("Hidden/SSSSS_Camera");
     if (this.Shader_SSSSS_Camera == null)
     {
         Debug.Log("#ERROR# Hidden/SSSSS_Camera Shader not found");
     }
     this.Material_SSSSS_Camera = new Material(this.Shader_SSSSS_Camera);
     this.Shader_SSSSS_Skin     = Shader.Find("Hidden/Skin Composite");
     if (this.Shader_SSSSS_Skin == null)
     {
         Debug.Log("#ERROR# The Forest/SSSSS_Skin Shader not found");
     }
 }
Пример #3
0
 private void OnEnable()
 {
     SSSSS.Instance = this;
     this.InitialFOV = Camera.main.fieldOfView;
     if (SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.ARGBHalf))
     {
         this.RTT_Format = RenderTextureFormat.ARGBHalf;
     }
     else if (SystemInfo.SupportsRenderTextureFormat(RenderTextureFormat.ARGBFloat))
     {
         this.RTT_Format = RenderTextureFormat.ARGBFloat;
     }
     else
     {
         this.RTT_Format = RenderTextureFormat.ARGB32;
     }
     Camera.main.depthTextureMode |= DepthTextureMode.DepthNormals;
     this.Shader_SSSSS_Camera = Shader.Find("Hidden/SSSSS_Camera");
     if (this.Shader_SSSSS_Camera == null)
     {
         Debug.Log("#ERROR# Hidden/SSSSS_Camera Shader not found");
     }
     this.Material_SSSSS_Camera = new Material(this.Shader_SSSSS_Camera);
     this.Shader_SSSSS_Skin = Shader.Find("Hidden/Skin Composite");
     if (this.Shader_SSSSS_Skin == null)
     {
         Debug.Log("#ERROR# The Forest/SSSSS_Skin Shader not found");
     }
 }