瀏覽代碼

Add comment

Garrett Johnson 5 年之前
父節點
當前提交
51a0aad3f5
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      examples/jsm/csm/CSM.js

+ 1 - 0
examples/jsm/csm/CSM.js

@@ -187,6 +187,7 @@ export default class CSM {
 			let squaredBBWidth = Math.max( _size.x, _size.y );
 			let squaredBBWidth = Math.max( _size.x, _size.y );
 			if ( this.fade ) {
 			if ( this.fade ) {
 
 
+				// expand the shadow extents by the fade margin if fade is enabled.
 				const camera = this.camera;
 				const camera = this.camera;
 				const far = Math.max( camera.far, this.maxFar );
 				const far = Math.max( camera.far, this.maxFar );
 				const linearDepth = frustums[ i ].vertices.far[ 0 ].z / ( far - camera.near );
 				const linearDepth = frustums[ i ].vertices.far[ 0 ].z / ( far - camera.near );