Examples of finalizeBuffer()


Examples of se.llbit.chunky.renderer.scene.Scene.finalizeBuffer()

          double sinv = 1.0 / (scene.spp + RenderConstants.SPP_PASS);
          samples[offset+0] = (samples[offset+0] * scene.spp + sr) * sinv;
          samples[offset+1] = (samples[offset+1] * scene.spp + sg) * sinv;
          samples[offset+2] = (samples[offset+2] * scene.spp + sb) * sinv;

          if (scene.finalizeBuffer()) {
            scene.finalizePixel(x, y);
          }

          offset += 3;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.