Fixed SpotLight constructor to properly compute the invSpotRange see https://github.com/jMonkeyEngine/jmonkeyengine/issues/563
This commit is contained in:
parent
cfd491e270
commit
dd8271e8b3
@ -102,7 +102,7 @@ public class SpotLight extends Light {
|
||||
this();
|
||||
setPosition(position);
|
||||
setDirection(direction);
|
||||
this.spotRange = range;
|
||||
setSpotRange(range);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -133,7 +133,7 @@ public class SpotLight extends Light {
|
||||
computeAngleParameters();
|
||||
setPosition(position);
|
||||
setDirection(direction);
|
||||
this.spotRange = range;
|
||||
setSpotRange(range);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -158,7 +158,7 @@ public class SpotLight extends Light {
|
||||
computeAngleParameters();
|
||||
setPosition(position);
|
||||
setDirection(direction);
|
||||
this.spotRange = range;
|
||||
setSpotRange(range);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user