Fixed indirect light extraction in Material
This commit is contained in:
		
							parent
							
								
									ab76585ff2
								
							
						
					
					
						commit
						b4737b0206
					
				| @ -713,12 +713,14 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable { | ||||
|                 ambientLightColor.addLocal(l.getColor()); | ||||
|                 if(removeLights){ | ||||
|                     lightList.remove(l); | ||||
|                     j--; | ||||
|                 } | ||||
|             } | ||||
|             if (l instanceof LightProbe) { | ||||
|                 probe = (LightProbe)l;                 | ||||
|                 if(removeLights){ | ||||
|                     lightList.remove(l); | ||||
|                     j--; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user