Generate PBR maps tweaks

This commit is contained in:
JannisX11 2025-03-27 21:24:55 +01:00
parent ae5378c7d1
commit 9624352b2a

View File

@ -807,6 +807,17 @@ BARS.defineActions(function() {
width: 564,
lines: [preview],
form: {
channel: {
type: 'select',
label: 'PBR Channel',
options: {
//normal: 'menu.texture.pbr_channel.normal',
height: 'menu.texture.pbr_channel.height',
metalness: 'Metalness',
emissive: 'Emissive',
roughness: 'Roughness',
}
},
method: {
type: 'select',
label: 'Source',
@ -820,17 +831,6 @@ BARS.defineActions(function() {
blue: 'Blue',
}
},
channel: {
type: 'select',
label: 'PBR Channel',
options: {
//normal: 'menu.texture.pbr_channel.normal',
height: 'menu.texture.pbr_channel.height',
metalness: 'Metalness',
emissive: 'Emissive',
roughness: 'Roughness',
}
},
in_range: {
type: 'vector',
label: 'Input Range',
@ -887,8 +887,15 @@ BARS.defineActions(function() {
group: texture_group?.uuid,
}).fromDataURL(canvas.toDataURL()).add(false);
textures.push(new_texture);
if (texture_group.material_config) {
texture_group.material_config.saved = false;
}
}
setTimeout(() => {
texture_group.updateMaterial();
}, 50);
Undo.finishEdit('Create PBR map');
updateSelection();
},