Search in sources :

Example 76 with InputCapsule

use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.

the class WaterFilter method read.

@Override
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
    speed = ic.readFloat("speed", 1f);
    lightDirection = (Vector3f) ic.readSavable("lightDirection", new Vector3f(0, -1, 0));
    lightColor = (ColorRGBA) ic.readSavable("lightColor", ColorRGBA.White);
    waterHeight = ic.readFloat("waterHeight", 0.0f);
    waterColor = (ColorRGBA) ic.readSavable("waterColor", new ColorRGBA(0.0078f, 0.3176f, 0.5f, 1.0f));
    deepWaterColor = (ColorRGBA) ic.readSavable("deepWaterColor", new ColorRGBA(0.0039f, 0.00196f, 0.145f, 1.0f));
    colorExtinction = (Vector3f) ic.readSavable("colorExtinction", new Vector3f(5.0f, 20.0f, 30.0f));
    waterTransparency = ic.readFloat("waterTransparency", 0.1f);
    maxAmplitude = ic.readFloat("maxAmplitude", 1.5f);
    shoreHardness = ic.readFloat("shoreHardness", 0.1f);
    useFoam = ic.readBoolean("useFoam", true);
    foamIntensity = ic.readFloat("foamIntensity", 0.5f);
    foamHardness = ic.readFloat("foamHardness", 1.0f);
    foamExistence = (Vector3f) ic.readSavable("foamExistence", new Vector3f(0.45f, 4.35f, 1.5f));
    waveScale = ic.readFloat("waveScale", 0.005f);
    sunScale = ic.readFloat("sunScale", 3.0f);
    shininess = ic.readFloat("shininess", 0.7f);
    windDirection = (Vector2f) ic.readSavable("windDirection", new Vector2f(0.0f, -1.0f));
    reflectionMapSize = ic.readInt("reflectionMapSize", 512);
    useRipples = ic.readBoolean("useRipples", true);
    normalScale = ic.readFloat("normalScale", 3.0f);
    useHQShoreline = ic.readBoolean("useHQShoreline", true);
    useSpecular = ic.readBoolean("useSpecular", true);
    useRefraction = ic.readBoolean("useRefraction", true);
    refractionStrength = ic.readFloat("refractionStrength", 0.0f);
    refractionConstant = ic.readFloat("refractionConstant", 0.5f);
    reflectionDisplace = ic.readFloat("reflectionDisplace", 30f);
    underWaterFogDistance = ic.readFloat("underWaterFogDistance", 120f);
    causticsIntensity = ic.readFloat("causticsIntensity", 0.5f);
    useCaustics = ic.readBoolean("useCaustics", true);
}
Also used : InputCapsule(com.jme3.export.InputCapsule)

Example 77 with InputCapsule

use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.

the class RadialBlurFilter method read.

@Override
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
    sampleDist = ic.readFloat("sampleDist", 1.0f);
    sampleStrength = ic.readFloat("sampleStrength", 2.2f);
}
Also used : InputCapsule(com.jme3.export.InputCapsule)

Example 78 with InputCapsule

use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.

the class BloomFilter method read.

@Override
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
    glowMode = ic.readEnum("glowMode", GlowMode.class, GlowMode.Scene);
    blurScale = ic.readFloat("blurScale", 1.5f);
    exposurePower = ic.readFloat("exposurePower", 5.0f);
    exposureCutOff = ic.readFloat("exposureCutOff", 0.0f);
    bloomIntensity = ic.readFloat("bloomIntensity", 2.0f);
    downSamplingFactor = ic.readFloat("downSamplingFactor", 1);
}
Also used : InputCapsule(com.jme3.export.InputCapsule)

Example 79 with InputCapsule

use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.

the class ComposeFilter method read.

@Override
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
}
Also used : InputCapsule(com.jme3.export.InputCapsule)

Example 80 with InputCapsule

use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.

the class DepthOfFieldFilter method read.

@Override
public void read(JmeImporter im) throws IOException {
    super.read(im);
    InputCapsule ic = im.getCapsule(this);
    blurScale = ic.readFloat("blurScale", 1f);
    focusDistance = ic.readFloat("focusDistance", 50f);
    focusRange = ic.readFloat("focusRange", 10f);
}
Also used : InputCapsule(com.jme3.export.InputCapsule)

Aggregations

InputCapsule (com.jme3.export.InputCapsule)123 Vector3f (com.jme3.math.Vector3f)18 Matrix3f (com.jme3.math.Matrix3f)5 ArrayList (java.util.ArrayList)5 AssetNotFoundException (com.jme3.asset.AssetNotFoundException)2 PhysicsRigidBody (com.jme3.bullet.objects.PhysicsRigidBody)2 Mesh (com.jme3.scene.Mesh)2 ShadowCompareMode (com.jme3.texture.Texture.ShadowCompareMode)2 ConvexShape (com.bulletphysics.collision.shapes.ConvexShape)1 KinematicCharacterController (com.bulletphysics.dynamics.character.KinematicCharacterController)1 Generic6DofConstraint (com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint)1 HingeConstraint (com.bulletphysics.dynamics.constraintsolver.HingeConstraint)1 SliderConstraint (com.bulletphysics.dynamics.constraintsolver.SliderConstraint)1 Transform (com.bulletphysics.linearmath.Transform)1 LinkerMsg (com.cas.circuit.msg.LinkerMsg)1 LoopMode (com.jme3.animation.LoopMode)1 AssetInfo (com.jme3.asset.AssetInfo)1 AssetKey (com.jme3.asset.AssetKey)1 AssetManager (com.jme3.asset.AssetManager)1 ModelKey (com.jme3.asset.ModelKey)1