mirror of
https://github.com/4ian/GDevelop.git
synced 2026-10-12 02:01:17 +00:00
- Point lights and spot lights now uses a realistic decay. It's not possible to find the exact same result as before, but you can tweak the intensity and the decay properties. Hemisphere lights, directional lights and ambient lights still work the same as before. - The 3D particle emitter must be updated to the last version to handle the new 3D renderer world scale property. - Ensure any 3D extension you use is also updated to the latest version.
67 lines
1.5 KiB
JavaScript
67 lines
1.5 KiB
JavaScript
//import pkg from "./package.json";
|
|
import resolve from '@rollup/plugin-node-resolve';
|
|
import terser from '@rollup/plugin-terser';
|
|
|
|
export default [
|
|
{
|
|
// Bundle the whole Three.js library as a classic script exposing the
|
|
// global `THREE` namespace (Three.js stopped providing such a build
|
|
// after r160). The bundle is written directly to the game engine
|
|
// ("Runtime") files, where it's expected to be a plain script setting
|
|
// a global - like pixi.js and ThreeAddons.js.
|
|
input: './src/three.ts',
|
|
output: [
|
|
{
|
|
name: 'THREE',
|
|
format: 'umd',
|
|
file: './dist/three.js',
|
|
sourcemap: true,
|
|
},
|
|
{
|
|
name: 'THREE',
|
|
format: 'umd',
|
|
file: '../../GDJS/Runtime/pixi-renderers/three.js',
|
|
sourcemap: false,
|
|
},
|
|
],
|
|
plugins: [
|
|
resolve({
|
|
extensions: ['.js'],
|
|
}),
|
|
terser(),
|
|
],
|
|
},
|
|
{
|
|
input: './src/index.ts',
|
|
output: [
|
|
{
|
|
name: 'THREE_ADDONS',
|
|
format: 'umd',
|
|
file: './dist/ThreeAddons.js',
|
|
sourcemap: true,
|
|
plugins: [],
|
|
globals: {
|
|
'three': 'THREE',
|
|
},
|
|
},
|
|
{
|
|
name: 'THREE_ADDONS',
|
|
format: 'umd',
|
|
file: '../../GDJS/Runtime/pixi-renderers/ThreeAddons.js',
|
|
sourcemap: false,
|
|
plugins: [],
|
|
globals: {
|
|
'three': 'THREE',
|
|
},
|
|
},
|
|
],
|
|
external: ['three'],
|
|
plugins: [
|
|
resolve({
|
|
extensions: ['.js'],
|
|
}),
|
|
terser(),
|
|
],
|
|
},
|
|
];
|