fix to TestConeVSFrustrum which was buried in commit 83aef82
This commit is contained in:
parent
af7a209b69
commit
97a26c4355
@ -102,7 +102,7 @@ public class TestConeVSFrustum extends SimpleApplication {
|
|||||||
|
|
||||||
float radius = FastMath.tan(spotLight.getSpotOuterAngle()) * spotLight.getSpotRange();
|
float radius = FastMath.tan(spotLight.getSpotOuterAngle()) * spotLight.getSpotRange();
|
||||||
|
|
||||||
Cylinder cylinder = new Cylinder(5, 16, 0, radius, spotLight.getSpotRange(), true, false);
|
Cylinder cylinder = new Cylinder(5, 16, 0.01f, radius, spotLight.getSpotRange(), true, false);
|
||||||
geom = new Geometry("light", cylinder);
|
geom = new Geometry("light", cylinder);
|
||||||
geom.setMaterial(new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md"));
|
geom.setMaterial(new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md"));
|
||||||
geom.getMaterial().setColor("Diffuse", ColorRGBA.White);
|
geom.getMaterial().setColor("Diffuse", ColorRGBA.White);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user