File tree Expand file tree Collapse file tree
jme3-plugins/src/gltf/java/com/jme3/scene/plugins/gltf Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments