Ambient light can now be set; Code cleanup
This commit is contained in:
1 parent
231ac792d7
commit
f884847513
14 files changed
+48
-13
No files matched your search
@@ -22,6 +22,7 @@ uniform Light light[12];
|
||||
uniform int numberOfLights;
|
||||
uniform bool isContinued;
|
||||
uniform float farPlane;
|
||||
uniform float ambientStrength;
|
||||
|
||||
uniform sampler2D gBPos;
|
||||
uniform sampler2D gBNorm;
|
||||
@@ -88,7 +89,6 @@ void main() {
|
||||
float specPower = specTemp.r;
|
||||
float matSpec = specTemp.g;
|
||||
|
||||
float ambientStrength = 0.1f;
|
||||
vec3 ambient = ambientStrength * matDiff;
|
||||
if (!isContinued)
|
||||
color += ambient;
|
||||
|
||||
Reference in new issue
Block a user