浏览代码

Merge pull request #12151 from Mugen87/dev3

bsdfs.glsl: Correct comment in G_GGX_Smith
Mr.doob 8 年之前
父节点
当前提交
c583683ac7
共有 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
 float G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {
 
-	// geometry term = G(l)⋅G(v) / 4(n⋅l)(n⋅v)
+	// geometry term (normalized) = G(l)⋅G(v) / 4(n⋅l)(n⋅v)
+	// also see #12151
 
 	float a2 = pow2( alpha );