|
@@ -575,6 +575,18 @@ Object.defineProperties( THREE.WebGLRenderer.prototype, {
|
|
}
|
|
}
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
+Object.defineProperty( THREE.WebGLShadowMap.prototype, 'cullFace', {
|
|
|
|
+ set: function( cullFace ) {
|
|
|
|
+ var flipSided = ( cullFace !== THREE.CullFaceBack );
|
|
|
|
+ console.warn( "WebGLRenderer: .shadowMap.cullFace is deprecated. " +
|
|
|
|
+ " Set .shadowMap.flipSidedFaces to " + flipSided + "." );
|
|
|
|
+ this.flipSidedFaces = flipSided;
|
|
|
|
+ },
|
|
|
|
+ get: function() {
|
|
|
|
+ return this.flipSidedFaces ? THREE.CullFaceFront : THREE.CullFaceBack;
|
|
|
|
+ }
|
|
|
|
+} );
|
|
|
|
+
|
|
//
|
|
//
|
|
|
|
|
|
Object.defineProperties( THREE.WebGLRenderTarget.prototype, {
|
|
Object.defineProperties( THREE.WebGLRenderTarget.prototype, {
|