コード例 #1
0
        private void refreshFocalDistance01()
        {
            float     result = ZBufferConversion.metresToZBufferValue(this.sampleCamera, this.focalDistance01);
            updateDof focdis = (x) => { x.focalDistance01 = result; };

            this.propagateChange(focdis);
        }
コード例 #2
0
        private void refreshFocalSize()
        {
            float     result  = ZBufferConversion.metresToZBufferValue(this.sampleCamera, this.focalSize);
            updateDof focsize = (x) => { x.focalSize = result; };

            this.propagateChange(focsize);
        }
コード例 #3
0
 private void propagateChange(updateDof change)
 {
     foreach (icDepthOfField34 dof in this.myDof)
     {
         change(dof);
     }
 }
コード例 #4
0
        private void refreshResolution()
        {
            updateDof refRes = (x) => { x.resolution = this.resolution; };

            this.propagateChange(refRes);
        }
コード例 #5
0
        private void refreshQuality()
        {
            updateDof refQual = (x) => { x.quality = this.quality; };

            this.propagateChange(refQual);
        }
コード例 #6
0
        private void refreshVisualize()
        {
            updateDof refVis = (x) => { x.visualize = this.visualize; };

            this.propagateChange(refVis);
        }
コード例 #7
0
 private void propagateChange(updateDof change)
 {
     foreach (icDepthOfField34 dof in this.myDof) {
     change(dof);
     }
 }