Bug where widgets did not get their ambient light now fixed.

This commit is contained in:
Tleety
2016-02-01 18:19:38 +01:00
parent 53cae25eb2
commit ed7d00c1d8
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ void main()
tilePos.y = int(gl_FragCoord.y/TILE_SIZE);
LightResult totalLighting;
totalLighting.Diffuse = AmbientColor;
totalLighting.Diffuse = vec4(AmbientColor.rgb, 1.0);
int currentTile = int(floor(gl_FragCoord.x/TILE_SIZE) + (floor(gl_FragCoord.y/TILE_SIZE) * int(ScreenDimensions.x/TILE_SIZE)));
int start = int(LightGrids.Data[currentTile].Start);