livre-liberty
Version:
Liberty theme for the Livre3D engine.
41 lines (32 loc) • 759 B
JavaScript
/*
* index.js
* Copyright 2017 Lucas Neves <lcneves@gmail.com>
*
* Liberty theme for Livre's Livre3D engine.
* Uses three.js and react-canvas.
*/
;
require('babel-polyfill');
const stylesheets = [
require('./style/defaults.js'),
require('./style/liberty.js')
];
const resources = require('./load-resources.js')(stylesheets);
const lights = [
{ type: 'ambient' },
{ type: 'directional' }
//{ type: 'point' }
];
const templates = require('./lib/templates.js');
const theme = {
stylesheets: stylesheets,
resources: resources,
lights: lights,
background: 0xffffff,
worldWidth: 100,
hfov: 30,
nearFarRatio: 0.25,
templates: templates
};
// All set, let's initialize the engine!
require('w3d')({ theme: theme });