소스 검색

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 );
 			if ( this.fade ) {
 
+				// expand the shadow extents by the fade margin if fade is enabled.
 				const camera = this.camera;
 				const far = Math.max( camera.far, this.maxFar );
 				const linearDepth = frustums[ i ].vertices.far[ 0 ].z / ( far - camera.near );