private void Start() { this._material = new Material(Shader.Find("Demo/ExcludeWetness")); this._mesh = Wipe.CreateFullscreenQuad(); this._decals = (PlaceholderSoftware.WetStuff.WetStuff)((Component)this).GetComponent <PlaceholderSoftware.WetStuff.WetStuff>(); this._decals.add_AfterDecalRender(new Action <CommandBuffer>(this.RecordCommandBuffer)); }
private void Start() { var shader = Shader.Find("Demo/ExcludeWetness"); _material = new Material(shader); _mesh = CreateFullscreenQuad(); _decals = GetComponent <PlaceholderSoftware.WetStuff.WetStuff>(); _camera = GetComponent <Camera>(); _decals.AfterDecalRender += RecordCommandBuffer; }
private void Reset() { this.PostProcessLayer = (PostProcessLayer)((Component)this).GetComponent <PostProcessLayer>(); this.Wetstuff = (PlaceholderSoftware.WetStuff.WetStuff)((Component)this).GetComponent <PlaceholderSoftware.WetStuff.WetStuff>(); }