private void refreshFocalDistance01() { float result = ZBufferConversion.metresToZBufferValue(this.sampleCamera, this.focalDistance01); updateDof focdis = (x) => { x.focalDistance01 = result; }; this.propagateChange(focdis); }
private void refreshFocalSize() { float result = ZBufferConversion.metresToZBufferValue(this.sampleCamera, this.focalSize); updateDof focsize = (x) => { x.focalSize = result; }; this.propagateChange(focsize); }
private void propagateChange(updateDof change) { foreach (icDepthOfField34 dof in this.myDof) { change(dof); } }
private void refreshResolution() { updateDof refRes = (x) => { x.resolution = this.resolution; }; this.propagateChange(refRes); }
private void refreshQuality() { updateDof refQual = (x) => { x.quality = this.quality; }; this.propagateChange(refQual); }
private void refreshVisualize() { updateDof refVis = (x) => { x.visualize = this.visualize; }; this.propagateChange(refVis); }