mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-06 17:31:09 +08:00
Generate PBR maps tweaks
This commit is contained in:
parent
ae5378c7d1
commit
9624352b2a
@ -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();
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user