mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Ambient light to correspond with tutorial's version.
This commit is contained in:
@@ -116,7 +116,7 @@ void main()
|
|||||||
|
|
||||||
// ambient lighting (note that the next IBL tutorial will replace
|
// ambient lighting (note that the next IBL tutorial will replace
|
||||||
// this ambient lighting with environment lighting).
|
// this ambient lighting with environment lighting).
|
||||||
vec3 ambient = vec3(0.01) * albedo * ao;
|
vec3 ambient = vec3(0.03) * albedo * ao;
|
||||||
|
|
||||||
vec3 color = ambient + Lo;
|
vec3 color = ambient + Lo;
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ void main()
|
|||||||
|
|
||||||
// ambient lighting (note that the next IBL tutorial will replace
|
// ambient lighting (note that the next IBL tutorial will replace
|
||||||
// this ambient lighting with environment lighting).
|
// this ambient lighting with environment lighting).
|
||||||
vec3 ambient = vec3(0.01) * albedo * ao;
|
vec3 ambient = vec3(0.03) * albedo * ao;
|
||||||
|
|
||||||
vec3 color = ambient + Lo;
|
vec3 color = ambient + Lo;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user