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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations