|
|
@ -787,12 +787,15 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable { |
|
|
|
} |
|
|
|
} |
|
|
|
ColorRGBA color = l.getColor(); |
|
|
|
ColorRGBA color = l.getColor(); |
|
|
|
//Color
|
|
|
|
//Color
|
|
|
|
lightData.setVector4InArray(color.getRed(), |
|
|
|
|
|
|
|
color.getGreen(), |
|
|
|
if(l.getType() != Light.Type.Probe){ |
|
|
|
color.getBlue(), |
|
|
|
lightData.setVector4InArray(color.getRed(), |
|
|
|
l.getType().getId(), |
|
|
|
color.getGreen(), |
|
|
|
lightDataIndex); |
|
|
|
color.getBlue(), |
|
|
|
lightDataIndex++; |
|
|
|
l.getType().getId(), |
|
|
|
|
|
|
|
lightDataIndex); |
|
|
|
|
|
|
|
lightDataIndex++; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
switch (l.getType()) { |
|
|
|
switch (l.getType()) { |
|
|
|
case Directional: |
|
|
|
case Directional: |
|
|
|