Files
AlexandreS cf374737fc Add support for built-in 3D games (#5285)
* This provides new 3D objects: 3D Box (perfect to create walls, floors, or billboards) and 3D Model (to import objects created in a 3D modeling app).
* 2D and 3D can be mixed in a same game. Each layer of a game can contain 2D objects, 3D objects or a mix of both.
* This allows to build 2D games, 2.5D games and full 3D games: platformers, racing games, FPS, hyper casual games. It's easy to start adding 3D objects to an existing 2D game.
* You can set up a light by adding an ambient light and/or directional light in the effects of a 3D layer. 3D objects can be configured to react to light or ignore it.
* In the future, support for 3D objects will be improved: light objects, animations, etc...
2023-05-16 17:37:49 +02:00

29 lines
538 B
JavaScript

//import pkg from "./package.json";
import resolve from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
export default [
{
input: './src/index.ts',
output: [
{
name: 'THREE_ADDONS',
format: 'umd',
file: './dist/ThreeAddons.js',
sourcemap: true,
plugins: [],
globals: {
'three': 'THREE',
},
},
],
external: ['three'],
plugins: [
resolve({
extensions: ['.js'],
}),
terser(),
],
},
];