Removed Annotations for filters
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7761 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
4df19663dd
commit
cc7110d4f5
@ -66,16 +66,11 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public abstract class Filter implements Savable {
|
public abstract class Filter implements Savable {
|
||||||
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
public @interface FilterParameter {
|
|
||||||
String name();
|
|
||||||
}
|
|
||||||
@FilterParameter (name="Name")
|
|
||||||
private String name;
|
private String name;
|
||||||
protected Pass defaultPass;
|
protected Pass defaultPass;
|
||||||
protected List<Pass> postRenderPasses;
|
protected List<Pass> postRenderPasses;
|
||||||
protected Material material;
|
protected Material material;
|
||||||
@FilterParameter (name="Enabled")
|
|
||||||
protected boolean enabled = true;
|
protected boolean enabled = true;
|
||||||
protected FilterPostProcessor processor;
|
protected FilterPostProcessor processor;
|
||||||
|
|
||||||
|
@ -89,63 +89,36 @@ public class WaterFilter extends Filter {
|
|||||||
private RenderManager renderManager;
|
private RenderManager renderManager;
|
||||||
private ViewPort viewPort;
|
private ViewPort viewPort;
|
||||||
private float time = 0;
|
private float time = 0;
|
||||||
@FilterParameter(name = "Light direction")
|
|
||||||
|
//properties
|
||||||
private Vector3f lightDirection = new Vector3f(0, -1, 0);
|
private Vector3f lightDirection = new Vector3f(0, -1, 0);
|
||||||
@FilterParameter(name = "Light color")
|
|
||||||
private ColorRGBA lightColor = ColorRGBA.White;
|
private ColorRGBA lightColor = ColorRGBA.White;
|
||||||
@FilterParameter(name = "Water height")
|
|
||||||
private float waterHeight = 0.0f;
|
private float waterHeight = 0.0f;
|
||||||
@FilterParameter(name = "Water color")
|
|
||||||
private ColorRGBA waterColor = new ColorRGBA(0.0078f, 0.3176f, 0.5f, 1.0f);
|
private ColorRGBA waterColor = new ColorRGBA(0.0078f, 0.3176f, 0.5f, 1.0f);
|
||||||
@FilterParameter(name = "Deep water color")
|
|
||||||
private ColorRGBA deepWaterColor = new ColorRGBA(0.0039f, 0.00196f, 0.145f, 1.0f);
|
private ColorRGBA deepWaterColor = new ColorRGBA(0.0039f, 0.00196f, 0.145f, 1.0f);
|
||||||
@FilterParameter(name = "Color extinction")
|
|
||||||
private Vector3f colorExtinction = new Vector3f(5.0f, 20.0f, 30.0f);
|
private Vector3f colorExtinction = new Vector3f(5.0f, 20.0f, 30.0f);
|
||||||
@FilterParameter(name = "Water transparency")
|
|
||||||
private float waterTransparency = 0.1f;
|
private float waterTransparency = 0.1f;
|
||||||
@FilterParameter(name = "Max amplitude")
|
|
||||||
private float maxAmplitude = 1.5f;
|
private float maxAmplitude = 1.5f;
|
||||||
@FilterParameter(name = "Shore hardness")
|
|
||||||
private float shoreHardness = 0.1f;
|
private float shoreHardness = 0.1f;
|
||||||
@FilterParameter(name = "Use Foam")
|
|
||||||
private boolean useFoam = true;
|
private boolean useFoam = true;
|
||||||
@FilterParameter(name = "Foam intensity")
|
|
||||||
private float foamIntensity = 0.5f;
|
private float foamIntensity = 0.5f;
|
||||||
@FilterParameter(name = "Foam hardness")
|
|
||||||
private float foamHardness = 1.0f;
|
private float foamHardness = 1.0f;
|
||||||
@FilterParameter(name = "Foam existance")
|
|
||||||
private Vector3f foamExistence = new Vector3f(0.45f, 4.35f, 1.5f);
|
private Vector3f foamExistence = new Vector3f(0.45f, 4.35f, 1.5f);
|
||||||
@FilterParameter(name = "Wave scale")
|
|
||||||
private float waveScale = 0.005f;
|
private float waveScale = 0.005f;
|
||||||
@FilterParameter(name = "Sun scale")
|
|
||||||
private float sunScale = 3.0f;
|
private float sunScale = 3.0f;
|
||||||
@FilterParameter(name = "Shininess")
|
|
||||||
private float shininess = 0.7f;
|
private float shininess = 0.7f;
|
||||||
@FilterParameter(name = "Wind direction")
|
|
||||||
private Vector2f windDirection = new Vector2f(0.0f, -1.0f);
|
private Vector2f windDirection = new Vector2f(0.0f, -1.0f);
|
||||||
@FilterParameter(name = "Reflection map size")
|
|
||||||
private int reflectionMapSize = 512;
|
private int reflectionMapSize = 512;
|
||||||
@FilterParameter(name = "Use ripples")
|
|
||||||
private boolean useRipples = true;
|
private boolean useRipples = true;
|
||||||
@FilterParameter(name = "Normals scale")
|
|
||||||
private float normalScale = 3.0f;
|
private float normalScale = 3.0f;
|
||||||
@FilterParameter(name = "Use HQ shorelines")
|
|
||||||
private boolean useHQShoreline = true;
|
private boolean useHQShoreline = true;
|
||||||
@FilterParameter(name = "Use Specular")
|
|
||||||
private boolean useSpecular = true;
|
private boolean useSpecular = true;
|
||||||
@FilterParameter(name = "Use refraction")
|
|
||||||
private boolean useRefraction = true;
|
private boolean useRefraction = true;
|
||||||
@FilterParameter(name = "Refraction strength")
|
|
||||||
private float refractionStrength = 0.0f;
|
private float refractionStrength = 0.0f;
|
||||||
@FilterParameter(name = "Refraction constant")
|
|
||||||
private float refractionConstant = 0.5f;
|
private float refractionConstant = 0.5f;
|
||||||
@FilterParameter(name = "Refleciton displace")
|
|
||||||
private float reflectionDisplace = 30;
|
private float reflectionDisplace = 30;
|
||||||
@FilterParameter(name = "Fog distance (underwater)")
|
|
||||||
private float underWaterFogDistance = 120;
|
private float underWaterFogDistance = 120;
|
||||||
@FilterParameter(name = "Caustics intensity (underwater)")
|
|
||||||
private float causticsIntensity = 0.5f;
|
private float causticsIntensity = 0.5f;
|
||||||
@FilterParameter(name = "Use caustics (underwater)")
|
|
||||||
private boolean useCaustics = true;
|
private boolean useCaustics = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user