mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Add anti-aliasing setting
This commit is contained in:
parent
bda338c188
commit
2d796348a6
@ -101,6 +101,7 @@ const Settings = {
|
||||
new Setting('shading', {category: 'preview', value: true, onChange() {
|
||||
updateShading()
|
||||
}});
|
||||
new Setting('antialiasing', {category: 'preview', value: true});
|
||||
new Setting('fov', {category: 'preview', value: 45, type: 'number', onChange(val) {
|
||||
Preview.all.forEach(preview => preview.setFOV(val));
|
||||
}});
|
||||
|
@ -195,7 +195,7 @@ class Preview {
|
||||
try {
|
||||
this.renderer = new THREE.WebGLRenderer({
|
||||
canvas: this.canvas,
|
||||
antialias: true,
|
||||
antialias: Settings.get('antialiasing'),
|
||||
alpha: true,
|
||||
preserveDrawingBuffer: true
|
||||
});
|
||||
|
@ -462,6 +462,8 @@
|
||||
"settings.brightness.desc": "Brightness of the preview. Default is 50",
|
||||
"settings.shading": "Shading",
|
||||
"settings.shading.desc": "Enable shading",
|
||||
"settings.antialiasing": "Anti-aliasing",
|
||||
"settings.antialiasing.desc": "Toggle anti-aliasing in the preview. Restart Blockbench to apply changes",
|
||||
"settings.render_sides": "Render Sides",
|
||||
"settings.fov": "FOV",
|
||||
"settings.fov.desc": "Camera Field of View. Default is 45",
|
||||
|
Loading…
Reference in New Issue
Block a user