mirror of
https://github.com/exogen/t2-model-skinner.git
synced 2026-01-19 19:24:44 +00:00
Add mine, fix non-metallic material bug
This commit is contained in:
parent
588183317d
commit
9aa8280c57
|
|
@ -46,6 +46,7 @@ export async function getSkinConfig() {
|
|||
elf: "weapon_elf",
|
||||
energy: "weapon_energy",
|
||||
grenade_launcher: "weapon_grenade_launcher",
|
||||
mine: "mine",
|
||||
missile: "weapon_missile",
|
||||
mortar: "weapon_mortar",
|
||||
plasmathrower: "weapon_plasmathrower",
|
||||
|
|
@ -270,6 +271,15 @@ export async function getSkinConfig() {
|
|||
mortar: [{ label: "Weapon", name: "weapon_mortar" }],
|
||||
repair: [{ label: "Weapon", name: "weapon_repair" }],
|
||||
targeting: [{ label: "Weapon", name: "weapon_targeting" }],
|
||||
mine: [
|
||||
{
|
||||
label: "Weapon",
|
||||
name: "mine",
|
||||
size: [512, 512],
|
||||
metallicFactor: 0,
|
||||
roughnessFactor: 1,
|
||||
},
|
||||
],
|
||||
// Vehicles
|
||||
vehicle_air_scout: [
|
||||
{
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1 +1 @@
|
|||
self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,"static/chunks/e21e5bbe-b28e0079b469d4e8.js","static/chunks/ebc70433-4eccd1cb3af29a3e.js","static/chunks/6eb5140f-31a2b2da7903b885.js","static/chunks/5d416436-3c60fd013e24a5af.js","static/chunks/85d7bc83-1ca530d7d3f44153.js","static/chunks/3a17f596-9aeae038dfa51955.js","static/chunks/f580fadb-2911e2fbf64aae5a.js","static/chunks/515-13ff0773d41722ae.js","static/chunks/pages/index-c568a42a375a4696.js"],"/_error":["static/chunks/pages/_error-54b9fcf45cb5bc62.js"],"/gallery":[s,"static/chunks/737a5600-aea383aaa2061cc6.js","static/chunks/918-3c6747f76df39072.js","static/css/922e89893536f2f9.css","static/chunks/pages/gallery-af1406fdc1af13f5.js"],sortedPages:["/","/_app","/_error","/gallery"]}}("static/chunks/cb355538-e538db8a1761f402.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
||||
self.__BUILD_MANIFEST=function(s){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/":[s,"static/chunks/e21e5bbe-b28e0079b469d4e8.js","static/chunks/ebc70433-4eccd1cb3af29a3e.js","static/chunks/6eb5140f-31a2b2da7903b885.js","static/chunks/5d416436-3c60fd013e24a5af.js","static/chunks/85d7bc83-1ca530d7d3f44153.js","static/chunks/3a17f596-9aeae038dfa51955.js","static/chunks/f580fadb-2911e2fbf64aae5a.js","static/chunks/515-13ff0773d41722ae.js","static/chunks/pages/index-9e6ef56e70eb7204.js"],"/_error":["static/chunks/pages/_error-54b9fcf45cb5bc62.js"],"/gallery":[s,"static/chunks/737a5600-aea383aaa2061cc6.js","static/chunks/918-3c6747f76df39072.js","static/css/922e89893536f2f9.css","static/chunks/pages/gallery-af1406fdc1af13f5.js"],sortedPages:["/","/_app","/_error","/gallery"]}}("static/chunks/cb355538-e538db8a1761f402.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
||||
2
docs/_next/static/chunks/pages/index-9e6ef56e70eb7204.js
Normal file
2
docs/_next/static/chunks/pages/index-9e6ef56e70eb7204.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
docs/mine.glb
Normal file
BIN
docs/mine.glb
Normal file
Binary file not shown.
BIN
docs/textures/mine.png
Normal file
BIN
docs/textures/mine.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
BIN
public/mine.glb
Normal file
BIN
public/mine.glb
Normal file
Binary file not shown.
BIN
public/textures/mine.png
Normal file
BIN
public/textures/mine.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 72 KiB |
|
|
@ -315,7 +315,9 @@ export default function ToolsProvider({ children }: { children: ReactNode }) {
|
|||
image.filters.push(grayscaleFilter);
|
||||
image.applyFilters();
|
||||
}
|
||||
setDrawingMode(false);
|
||||
if (metallicCanvas) {
|
||||
setDrawingMode(false);
|
||||
}
|
||||
canvas.centerObject(image);
|
||||
canvas.add(image);
|
||||
lastAddedImage = image;
|
||||
|
|
@ -324,7 +326,7 @@ export default function ToolsProvider({ children }: { children: ReactNode }) {
|
|||
canvas.setActiveObject(lastAddedImage);
|
||||
}
|
||||
},
|
||||
[canvas, activeCanvasType, setDrawingMode, textureSize]
|
||||
[textureSize, activeCanvasType, metallicCanvas, canvas, setDrawingMode]
|
||||
);
|
||||
|
||||
const duplicate = useCallback(async () => {
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ export default function WarriorSelector() {
|
|||
<option value="mortar">Mortar</option>
|
||||
<option value="repair">Repair Pack</option>
|
||||
<option value="targeting">Targeting Laser</option>
|
||||
<option value="mine">Mine</option>
|
||||
</optgroup>
|
||||
<optgroup label="Vehicles" data-model-type="vehicle">
|
||||
<option value="vehicle_grav_scout">Wildcat Grav Cycle</option>
|
||||
|
|
|
|||
Loading…
Reference in a new issue