Skip to content

Commit 2f64bba

Browse files
committed
fix merge issue
1 parent def0dab commit 2f64bba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf/LightsPunctualExtensionLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private DirectionalLight buildDirectionalLight(JsonObject obj) {
175175

176176
float intensity = obj.has("intensity") ? obj.get("intensity").getAsFloat() : 1.0f;
177177
ColorRGBA color = obj.has("color") ? GltfUtils.getAsColor(obj, "color") : new ColorRGBA(ColorRGBA.White);
178-
color = buildLinearLightColor(color, intensity);
178+
color = lumensToColor(color, intensity);
179179

180180
DirectionalLight directionalLight = new DirectionalLight();
181181
directionalLight.setName(name);
@@ -200,7 +200,7 @@ private PointLight buildPointLight(JsonObject obj) {
200200
if(APPLY_INTENSITY_CONVERSION) intensity = intensity / (4.0f * FastMath.PI);
201201

202202
float range = obj.has("range") ? obj.get("range").getAsFloat() : (COMPUTE_LIGHT_RANGE ? getCutoffDistance(color, intensity) : Float.POSITIVE_INFINITY);
203-
color = buildLinearLightColor(color, intensity);
203+
color = lumensToColor(color, intensity);
204204

205205
PointLight pointLight = new PointLight();
206206
pointLight.setName(name);

0 commit comments

Comments
 (0)