Fix Shadow Filters not having a default constructor and hence not being deserializable.
This commit is contained in:
parent
d36bbcf26c
commit
5aef90da47
@ -62,6 +62,12 @@ public abstract class AbstractShadowFilter<T extends AbstractShadowRenderer> ext
|
|||||||
protected T shadowRenderer;
|
protected T shadowRenderer;
|
||||||
protected ViewPort viewPort;
|
protected ViewPort viewPort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* used for serialization
|
||||||
|
*/
|
||||||
|
protected AbstractShadowFilter(){
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract class constructor
|
* Abstract class constructor
|
||||||
*
|
*
|
||||||
|
@ -56,6 +56,16 @@ import java.io.IOException;
|
|||||||
*/
|
*/
|
||||||
public class DirectionalLightShadowFilter extends AbstractShadowFilter<DirectionalLightShadowRenderer> {
|
public class DirectionalLightShadowFilter extends AbstractShadowFilter<DirectionalLightShadowRenderer> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used for serialzation.
|
||||||
|
* Use DirectionalLightShadowFilter#DirectionalLightShadowFilter
|
||||||
|
* (AssetManager assetManager, int shadowMapSize, int nbSplits)
|
||||||
|
* instead.
|
||||||
|
*/
|
||||||
|
public DirectionalLightShadowFilter() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a DirectionalLightShadowFilter Shadow Filter More info on the
|
* Creates a DirectionalLightShadowFilter Shadow Filter More info on the
|
||||||
* technique at <a
|
* technique at <a
|
||||||
|
@ -56,6 +56,16 @@ import java.io.IOException;
|
|||||||
*/
|
*/
|
||||||
public class PointLightShadowFilter extends AbstractShadowFilter<PointLightShadowRenderer> {
|
public class PointLightShadowFilter extends AbstractShadowFilter<PointLightShadowRenderer> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used for serialization.
|
||||||
|
* Use PointLightShadowFilter#PointLightShadowFilter(AssetManager
|
||||||
|
* assetManager, int shadowMapSize)
|
||||||
|
* instead.
|
||||||
|
*/
|
||||||
|
public PointLightShadowFilter() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a PointLightShadowFilter
|
* Creates a PointLightShadowFilter
|
||||||
*
|
*
|
||||||
|
@ -63,9 +63,10 @@ public class PointLightShadowRenderer extends AbstractShadowRenderer {
|
|||||||
private Geometry[] frustums = null;
|
private Geometry[] frustums = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used for serialization use
|
* Used for serialization.
|
||||||
* PointLightShadowRenderer"PointLightShadowRenderer(AssetManager
|
* Use PointLightShadowRenderer#PointLightShadowRenderer(AssetManager
|
||||||
* assetManager, int shadowMapSize)
|
* assetManager, int shadowMapSize)
|
||||||
|
* instead.
|
||||||
*/
|
*/
|
||||||
public PointLightShadowRenderer() {
|
public PointLightShadowRenderer() {
|
||||||
super();
|
super();
|
||||||
|
@ -69,6 +69,16 @@ public class PssmShadowFilter extends Filter {
|
|||||||
private PssmShadowRenderer pssmRenderer;
|
private PssmShadowRenderer pssmRenderer;
|
||||||
private ViewPort viewPort;
|
private ViewPort viewPort;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used for serialization.
|
||||||
|
* Use PssmShadowFilter#PssmShadowFilter(AssetManager
|
||||||
|
* assetManager, int size, int nbSplits)
|
||||||
|
* instead.
|
||||||
|
*/
|
||||||
|
public PssmShadowFilter() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a PSSM Shadow Filter
|
* Creates a PSSM Shadow Filter
|
||||||
* More info on the technique at <a href="http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html">http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html</a>
|
* More info on the technique at <a href="http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html">http://http.developer.nvidia.com/GPUGems3/gpugems3_ch10.html</a>
|
||||||
|
@ -56,6 +56,16 @@ import java.io.IOException;
|
|||||||
*/
|
*/
|
||||||
public class SpotLightShadowFilter extends AbstractShadowFilter<SpotLightShadowRenderer> {
|
public class SpotLightShadowFilter extends AbstractShadowFilter<SpotLightShadowRenderer> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used for serialization.
|
||||||
|
* Use SpotLightShadowFilter#SpotLightShadowFilter(AssetManager assetManager,
|
||||||
|
* int shadowMapSize)
|
||||||
|
* instead.
|
||||||
|
*/
|
||||||
|
public SpotLightShadowFilter() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a SpotLight Shadow Filter
|
* Creates a SpotLight Shadow Filter
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user