Skip to content

Commit def4d6b

Browse files
committed
Add more F3D renderer options required because of lack of config file
1 parent 1e59cf0 commit def4d6b

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

app/uploaders/application_uploader.rb

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,21 @@ class ApplicationUploader < Shrine
2626
}
2727

2828
F3D_OPTS = {
29-
output: "-",
30-
resolution: "512,512",
31-
filename: "0",
32-
"background-color": "0,0,0",
33-
"ambient-occlusion": "1",
34-
"grid-unit": "10",
35-
"grid-color": "0,255,255",
36-
"grid-subdivisions": 0,
37-
axis: "0"
29+
"ambient-occlusion" => "1",
30+
"anti-aliasing" => "true",
31+
"axis" => "0",
32+
"background-color" => "0,0,0",
33+
"camera-direction" => "-1,-0.5,-1",
34+
"filename" => "0",
35+
"grid" => "1",
36+
"grid-color" => "0,255,255",
37+
"grid-subdivisions" => 0,
38+
"grid-unit" => "10",
39+
"no-config" => "1",
40+
"output" => "-",
41+
"resolution" => "512,512",
42+
"tone-mapping" => "1",
43+
"translucency-support" => "1"
3844
}.map { |k, v| "--#{k}=#{v}" }.join(" ").freeze
3945

4046
storage(/library_(\d+)/) do |m|

0 commit comments

Comments
 (0)