Skip to content

Commit b1baa59

Browse files
committed
Updated comments
1 parent 2e1147d commit b1baa59

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/webgl/shaders/phong.frag

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ void main(void) {
2323
totalLight(vViewPosition, normalize(vNormal), diffuse, specular);
2424

2525
// Calculating final color as result of all lights (plus emissive term).
26-
// Transparency is determined exclusively by the diffuse component.
2726

2827
gl_FragColor = isTexture ? texture2D(uSampler, vTexCoord) * (uTint / vec4(255, 255, 255, 255)) : uMaterialColor;
2928
gl_FragColor.rgb = diffuse * gl_FragColor.rgb +
30-
vAmbientColor * uAmbientMatColor.rgb +
31-
specular * uSpecularMatColor.rgb +
32-
uEmissiveMatColor.rgb;
29+
vAmbientColor * uAmbientMatColor.rgb +
30+
specular * uSpecularMatColor.rgb +
31+
uEmissiveMatColor.rgb;
3332
}

0 commit comments

Comments
 (0)