mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-21 01:25:32 -04:00
cf374737fc
* 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...
29 lines
538 B
JavaScript
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(),
|
|
],
|
|
},
|
|
];
|