Fixed an issue in material when having classic lights along with a LightProbe
This commit is contained in:
parent
7d07a63ebf
commit
45321fc7d5
@ -787,12 +787,15 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable {
|
|||||||
}
|
}
|
||||||
ColorRGBA color = l.getColor();
|
ColorRGBA color = l.getColor();
|
||||||
//Color
|
//Color
|
||||||
|
|
||||||
|
if(l.getType() != Light.Type.Probe){
|
||||||
lightData.setVector4InArray(color.getRed(),
|
lightData.setVector4InArray(color.getRed(),
|
||||||
color.getGreen(),
|
color.getGreen(),
|
||||||
color.getBlue(),
|
color.getBlue(),
|
||||||
l.getType().getId(),
|
l.getType().getId(),
|
||||||
lightDataIndex);
|
lightDataIndex);
|
||||||
lightDataIndex++;
|
lightDataIndex++;
|
||||||
|
}
|
||||||
|
|
||||||
switch (l.getType()) {
|
switch (l.getType()) {
|
||||||
case Directional:
|
case Directional:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user