添加关照、全局等高线、修改图层问题
This commit is contained in:
		
							
								
								
									
										16
									
								
								static/sdk/three/jsm/nodes/functions/BSDF/F_Schlick.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								static/sdk/three/jsm/nodes/functions/BSDF/F_Schlick.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| import { tslFn } from '../../shadernode/ShaderNode.js'; | ||||
|  | ||||
| const F_Schlick = tslFn( ( { f0, f90, dotVH } ) => { | ||||
|  | ||||
| 	// Original approximation by Christophe Schlick '94 | ||||
| 	// float fresnel = pow( 1.0 - dotVH, 5.0 ); | ||||
|  | ||||
| 	// Optimized variant (presented by Epic at SIGGRAPH '13) | ||||
| 	// https://cdn2.unrealengine.com/Resources/files/2013SiggraphPresentationsNotes-26915738.pdf | ||||
| 	const fresnel = dotVH.mul( - 5.55473 ).sub( 6.98316 ).mul( dotVH ).exp2(); | ||||
|  | ||||
| 	return f0.mul( fresnel.oneMinus() ).add( f90.mul( fresnel ) ); | ||||
|  | ||||
| } ); // validated | ||||
|  | ||||
| export default F_Schlick; | ||||
		Reference in New Issue
	
	Block a user