• A
    Added clear color parameter to WebGLRenderer constructor, also added setClearColor API call. · 255c042b
    alteredq 提交于
    This allows to work around ANGLE antialiasing issue appearing when compositing WebGL framebuffer with transparent background color with HTML canvas element background (while keeping antialiasing on).
    
    WebGLRenderer constructor now takes JSON object with few optional parameters:
    
        renderer = new THREE.WebGLRenderer { scene: scene,
                                             antialias: true,
                                             clearColor: 0x000000,
                                             clearAlpha: 0 };
    
    Here is how to change clear color in runtime:
    
        renderer.setClearColor( 0xff0000, 1 );
    255c042b
WebGLRenderer.js 42.8 KB