Search in sources :

Example 96 with OutputCapsule

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

the class SpotLight method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(direction, "direction", new Vector3f());
    oc.write(position, "position", new Vector3f());
    oc.write(spotInnerAngle, "spotInnerAngle", FastMath.QUARTER_PI / 8);
    oc.write(spotOuterAngle, "spotOuterAngle", FastMath.QUARTER_PI / 6);
    oc.write(spotRange, "spotRange", 100);
}
Also used : Vector3f(com.jme3.math.Vector3f)

Example 97 with OutputCapsule

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

the class MatParamOverride method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(enabled, "enabled", true);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 98 with OutputCapsule

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

the class MatParamTexture method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(0, "texture_unit", -1);
    // For backwards compatibility
    oc.write(texture, "texture", null);
    oc.write(colorSpace, "colorSpace", null);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 99 with OutputCapsule

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

the class Texture3D method write.

@Override
public void write(JmeExporter e) throws IOException {
    super.write(e);
    OutputCapsule capsule = e.getCapsule(this);
    capsule.write(wrapS, "wrapS", WrapMode.EdgeClamp);
    capsule.write(wrapT, "wrapT", WrapMode.EdgeClamp);
    capsule.write(wrapR, "wrapR", WrapMode.EdgeClamp);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 100 with OutputCapsule

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

the class WaterFilter method write.

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

Aggregations

OutputCapsule (com.jme3.export.OutputCapsule)119 Vector3f (com.jme3.math.Vector3f)17 Matrix3f (com.jme3.math.Matrix3f)4 SafeArrayList (com.jme3.util.SafeArrayList)2 ArrayList (java.util.ArrayList)2 Generic6DofConstraint (com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint)1 BoundingSphere (com.jme3.bounding.BoundingSphere)1 BoxCollisionShape (com.jme3.bullet.collision.shapes.BoxCollisionShape)1 ChildCollisionShape (com.jme3.bullet.collision.shapes.infos.ChildCollisionShape)1 RotationalLimitMotor (com.jme3.bullet.joints.motors.RotationalLimitMotor)1 Plane (com.jme3.math.Plane)1 Quaternion (com.jme3.math.Quaternion)1 Vector2f (com.jme3.math.Vector2f)1 Mesh (com.jme3.scene.Mesh)1 ShaderNodeVariable (com.jme3.shader.ShaderNodeVariable)1 List (java.util.List)1