소스 검색

FormulaDerivationNoteForViewZToPerspectiveDepthAndPerspectiveDepthToViewZPr (#21557)

Vis 4 년 전
부모
커밋
b042d3b7ff
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/renderers/shaders/ShaderChunk/packing.glsl.js

+ 2 - 0
src/renderers/shaders/ShaderChunk/packing.glsl.js

@@ -42,6 +42,8 @@ float orthographicDepthToViewZ( const in float linearClipZ, const in float near,
 	return linearClipZ * ( near - far ) - near;
 }
 
+// NOTE: https://twitter.com/gonnavis/status/1377183786949959682
+
 float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {
 	return (( near + viewZ ) * far ) / (( far - near ) * viewZ );
 }