use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.
the class PointLightShadowRenderer method read.
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule ic = im.getCapsule(this);
light = (PointLight) ic.readSavable("light", null);
init((int) shadowMapSize);
}
use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.
the class PssmShadowFilter method read.
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule ic = im.getCapsule(this);
}
use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.
the class SpotLightShadowRenderer method read.
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule ic = im.getCapsule(this);
zFarOverride = ic.readInt("zFarOverride", 0);
light = (SpotLight) ic.readSavable("light", null);
fadeInfo = (Vector2f) ic.readSavable("fadeInfo", null);
fadeLength = ic.readFloat("fadeLength", 0f);
init((int) shadowMapSize);
}
use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.
the class Image method read.
public void read(JmeImporter e) throws IOException {
InputCapsule capsule = e.getCapsule(this);
format = capsule.readEnum("format", Format.class, Format.RGBA8);
width = capsule.readInt("width", 0);
height = capsule.readInt("height", 0);
depth = capsule.readInt("depth", 0);
mipMapSizes = capsule.readIntArray("mipMapSizes", null);
multiSamples = capsule.readInt("multiSamples", 1);
data = (ArrayList<ByteBuffer>) capsule.readByteBufferArrayList("data", null);
colorSpace = capsule.readEnum("colorSpace", ColorSpace.class, null);
if (mipMapSizes != null) {
needGeneratedMips = false;
mipsWereGenerated = true;
}
}
use of com.jme3.export.InputCapsule in project jmonkeyengine by jMonkeyEngine.
the class PQTorus method read.
@Override
public void read(JmeImporter e) throws IOException {
super.read(e);
InputCapsule capsule = e.getCapsule(this);
p = capsule.readFloat("p", 0);
q = capsule.readFloat("q", 0);
radius = capsule.readFloat("radius", 0);
width = capsule.readFloat("width", 0);
steps = capsule.readInt("steps", 0);
radialSamples = capsule.readInt("radialSamples", 0);
}
Aggregations