Exemplo n.º 1
0
 private void OnEnable()
 {
     this.MyCamera         = base.gameObject.GetComponent <Camera>();
     this.frostEffect      = base.GetComponent <Frost>();
     this.ScionStuff       = base.GetComponent <ScionPostProcess>();
     this.bleedEffect      = base.GetComponent <BleedBehavior>();
     this.aa_FXAA          = base.GetComponent <FXAA>();
     this.aa_SMAA          = base.GetComponent <SMAA>();
     this.amplifyMotion    = base.GetComponent <AmplifyMotionEffect>();
     this.sessao           = base.GetComponent <SESSAO>();
     this.hbao             = base.GetComponent <HBAO>();
     this.waterViz         = base.gameObject.GetComponent <WaterViz>();
     this.waterBlur        = base.gameObject.GetComponent <WaterBlurEffect>();
     this.waterBlurCeto    = base.gameObject.GetComponent <UnderWaterPostEffect>();
     this.farShadowCascade = base.gameObject.GetComponent <FarShadowCascade>();
     if (Sunshine.Instance)
     {
         this.SunshineOccluders = Sunshine.Instance.Occluders;
     }
     this.reflexionMode_complex = LayerMask.GetMask(new string[]
     {
         "Camera",
         "Ignore Raycast"
     });
     this.reflexionMode_simple = LayerMask.GetMask(new string[]
     {
         "Camera"
     });
     this.reflexionMode_off = 0;
 }
Exemplo n.º 2
0
	void OnEnable()
	{
		serObj = new SerializedObject(target);

		radius = serObj.FindProperty("radius"); 
		bias = serObj.FindProperty("bias");
		bilateralDepthTolerance = serObj.FindProperty("bilateralDepthTolerance");
		zThickness = serObj.FindProperty("zThickness");
		occlusionIntensity = serObj.FindProperty("occlusionIntensity");
		sampleDistributionCurve = serObj.FindProperty("sampleDistributionCurve");
		colorBleedAmount = serObj.FindProperty("colorBleedAmount");
		brightnessThreshold = serObj.FindProperty("brightnessThreshold");
		drawDistance = serObj.FindProperty("drawDistance");
		drawDistanceFadeSize = serObj.FindProperty("drawDistanceFadeSize");
		reduceSelfBleeding = serObj.FindProperty("reduceSelfBleeding");
		useDownsampling = serObj.FindProperty("useDownsampling");
		visualizeSSAO = serObj.FindProperty("visualizeSSAO");
		halfSampling = serObj.FindProperty("halfSampling");
		preserveDetails = serObj.FindProperty("preserveDetails");

		targetInstance = (SESSAO)target;
	}
Exemplo n.º 3
0
    void OnEnable()
    {
        serObj = new SerializedObject(target);

        radius = serObj.FindProperty("radius");
        bias   = serObj.FindProperty("bias");
        bilateralDepthTolerance = serObj.FindProperty("bilateralDepthTolerance");
        zThickness              = serObj.FindProperty("zThickness");
        occlusionIntensity      = serObj.FindProperty("occlusionIntensity");
        sampleDistributionCurve = serObj.FindProperty("sampleDistributionCurve");
        colorBleedAmount        = serObj.FindProperty("colorBleedAmount");
        brightnessThreshold     = serObj.FindProperty("brightnessThreshold");
        drawDistance            = serObj.FindProperty("drawDistance");
        drawDistanceFadeSize    = serObj.FindProperty("drawDistanceFadeSize");
        reduceSelfBleeding      = serObj.FindProperty("reduceSelfBleeding");
        useDownsampling         = serObj.FindProperty("useDownsampling");
        visualizeSSAO           = serObj.FindProperty("visualizeSSAO");
        halfSampling            = serObj.FindProperty("halfSampling");
        preserveDetails         = serObj.FindProperty("preserveDetails");

        targetInstance = (SESSAO)target;
    }
Exemplo n.º 4
0
 private void OnEnable()
 {
     this.MyCamera = base.gameObject.GetComponent <Camera>();
     this.ssao     = base.GetComponent <SESSAO>();
 }