parent
232843c6ee
commit
67e0ffb139
@ -101,6 +101,9 @@ const Settings = {
|
||||
new Setting('shading', {category: 'preview', value: true, onChange() {
|
||||
updateShading()
|
||||
}});
|
||||
new Setting('fov', {category: 'preview', value: 45, type: 'number', onChange(val) {
|
||||
Preview.all.forEach(preview => preview.setFOV(val));
|
||||
}});
|
||||
new Setting('render_sides', {category: 'preview', value: 'auto', type: 'select', options: {
|
||||
'auto': tl('settings.render_sides.auto'),
|
||||
'front': tl('settings.render_sides.front'),
|
||||
@ -152,7 +155,6 @@ const Settings = {
|
||||
|
||||
//Paint
|
||||
new Setting('paint_side_restrict', {category: 'paint', value: true});
|
||||
//new Setting('layered_textures', {category: 'paint', value: false});
|
||||
new Setting('brush_opacity_modifier', {category: 'paint', value: 'pressure', type: 'select', options: {
|
||||
'pressure': tl('settings.brush_modifier.pressure'),
|
||||
'tilt': tl('settings.brush_modifier.tilt'),
|
||||
|
@ -369,6 +369,10 @@ class Preview {
|
||||
this.controls.updateSceneScale();
|
||||
return this;
|
||||
}
|
||||
setFOV(fov) {
|
||||
this.camPers.fov = fov;
|
||||
this.camPers.updateProjectionMatrix();
|
||||
}
|
||||
setNormalCamera() {
|
||||
//Deprecated
|
||||
this.setProjectionMode(false)
|
||||
|
@ -452,6 +452,8 @@
|
||||
"settings.shading": "Shading",
|
||||
"settings.shading.desc": "Enable shading",
|
||||
"settings.render_sides": "Render Sides",
|
||||
"settings.fov": "FOV",
|
||||
"settings.fov.desc": "Camera Field of View. Default is 45",
|
||||
"settings.render_sides.desc": "Select which side of a face is rendered",
|
||||
"settings.render_sides.auto": "Auto",
|
||||
"settings.render_sides.front": "Outside",
|
||||
|
Loading…
x
Reference in New Issue
Block a user