瀏覽代碼

bsdfs.glsl: Added link to PR

Mugen87 8 年之前
父節點
當前提交
af245a3714
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/renderers/shaders/ShaderChunk/bsdfs.glsl

+ 2 - 1
src/renderers/shaders/ShaderChunk/bsdfs.glsl

@@ -49,7 +49,8 @@ vec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {
 // alpha is "roughness squared" in Disney’s reparameterization
 // alpha is "roughness squared" in Disney’s reparameterization
 float G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {
 float G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {
 
 
-	// geometry term = G(l)⋅G(v)
+	// geometry term (normalized) = G(l)⋅G(v) / 4(n⋅l)(n⋅v)
+	// also see #12151
 
 
 	float a2 = pow2( alpha );
 	float a2 = pow2( alpha );