Esempio n. 1
0
        public MCMC(CPUTexture probTex, float stddev, float aspect, float height, float epsilon, Rect area)
        {
            this.ProbTex = probTex;
            this.Aspect  = aspect;
            this.Height  = height;
            this.Epsilon = epsilon;
            this.StdDev  = stddev;

            area.xMin          = Mathf.Clamp01(area.xMin);
            area.xMax          = Mathf.Clamp01(area.xMax);
            area.yMin          = Mathf.Clamp01(area.yMin);
            area.yMax          = Mathf.Clamp01(area.yMax);
            this.EffectiveArea = area;
        }
Esempio n. 2
0
 public MCMC(CPUTexture probTex, float stddev, float aspect, float height, float epsilon)
     : this(probTex, stddev, aspect, height, epsilon, new Rect(0f, 0f, 1f, 1f))
 {
 }
Esempio n. 3
0
 public MCMC(CPUTexture probTex, float stddev, float aspect)
     : this(probTex, stddev, aspect, 1f, 1e-6f, new Rect(0f, 0f, 1f, 1f))
 {
 }