Move cull and texture filter option to viewport menu

This commit is contained in:
luboslenco
2019-11-17 14:24:44 +01:00
parent 7c7b6388b5
commit e38fcfc97e
5 changed files with 18 additions and 17 deletions
+2 -2
View File
@@ -828,7 +828,7 @@ class MaterialBuilder {
name: context_id,
depth_write: true,
compare_mode: 'less',
cull_mode: (Config.raw.rp_culling || !isScene) ? 'clockwise' : 'none',
cull_mode: (UITrait.inst.cullBackfaces || !isScene) ? 'clockwise' : 'none',
vertex_elements: [{name: "pos", data: 'short4norm'},{name: "nor", data: 'short2norm'},{name: "tex", data: 'short2norm'}] });
var vert = con_mesh.make_vert();
@@ -1006,7 +1006,7 @@ class MaterialBuilder {
name: context_id,
depth_write: true,
compare_mode: 'less',
cull_mode: Config.raw.rp_culling ? 'clockwise' : 'none',
cull_mode: UITrait.inst.cullBackfaces ? 'clockwise' : 'none',
vertex_elements: [{name: "pos", data: 'short4norm'},{name: "nor", data: 'short2norm'},{name: "tex", data: 'short2norm'}] });
var vert = con_mesh.make_vert();