public FakeGIEngine(Options options) { up = options.getVector("gi.fake.up", new Vector3(0, 1, 0)).normalize(); sky = options.getColor("gi.fake.sky", Color.WHITE).copy(); ground = options.getColor("gi.fake.ground", Color.BLACK).copy(); sky.mul((float)Math.PI); ground.mul((float)Math.PI); }
public bool init(Options options, Scene scene) { up = options.getVector("gi.fake.up", new Vector3(0, 1, 0)).normalize(); sky = options.getColor("gi.fake.sky", Color.WHITE).copy(); ground = options.getColor("gi.fake.ground", Color.BLACK).copy(); sky.mul((float) Math.PI); ground.mul((float) Math.PI); return true; }