diff options
Diffstat (limited to 'public/bluebey-studio/src/presets.js')
| -rw-r--r-- | public/bluebey-studio/src/presets.js | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/public/bluebey-studio/src/presets.js b/public/bluebey-studio/src/presets.js index 1130a67..12b14fd 100644 --- a/public/bluebey-studio/src/presets.js +++ b/public/bluebey-studio/src/presets.js @@ -40,6 +40,26 @@ function captionDefaults() { }; } +/** + * 見えない壁 (the invisible wall) settings. The studio offers two, so a corner (or + * two opposite cuts) can be made. A wall's position is kept *relative to the + * character*, so moving ぶるべー carries its walls along (see src/clip.js). + */ +function wallDefaults() { + return { + on: false, + x: 0, y: 0, z: 0, // a point the plane passes through, relative to the character + yaw: 0, // turn about Y, degrees + tilt: 0, // lean about X, degrees + // The guide is the only part of the wall that is ever *drawn* (the wall + // itself writes depth but no colour, so it hides what is behind it + // without being visible). `guide` shows that rectangle while placing, + // which is also when it can be dragged in the viewport. + guide: false, + size: 1, // the wall's size (a real width and height, not a clip) + }; +} + export function defaultState() { return { version: 1, @@ -142,21 +162,11 @@ export function defaultState() { // nothing is drawn along the meeting. Cleaner, but the leaves and // the body merge into one white shape. leafBodyLine: true, - // 見えない壁 (the invisible wall). A placeable clipping plane that hides - // whatever is behind it, so the character can be buried in the wall and + // 見えない壁 (the invisible wall). Up to two placeable rectangles that hide + // whatever is behind them, so the character can be buried in a wall and // only the rest of the body shows. See src/clip.js. - wall: { - on: false, - x: 0, y: 0, z: 0, // a point the plane passes through (world units) - yaw: 0, // turn about Y, degrees - tilt: 0, // lean about X, degrees - // The guide is the only part of the wall that is ever *drawn* (the wall - // itself writes depth but no colour, so it hides what is behind it - // without being visible). `guide` shows that rectangle while placing, - // which is also when it can be dragged in the viewport. - guide: false, - size: 1, // the wall's size (a real width and height, not a clip) - }, + wall: wallDefaults(), + wall2: wallDefaults(), }, pose: { bones: {}, // { boneName: [x, y, z] } in degrees, rest = 0,0,0 |
