mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-09 09:52:34 +01:00
make shells always double sided
This commit is contained in:
parent
c7709dca51
commit
c941e07a23
1 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ import Vector from 'math/vector';
|
|||
import DPR from 'dpr'
|
||||
import {getAttribute, setAttribute} from "scene/objectData";
|
||||
import {BasisForPlane} from 'math/basis';
|
||||
import {DoubleSide} from "three";
|
||||
|
||||
//todo: rename to shell
|
||||
export class SceneSolid {
|
||||
|
|
@ -52,7 +53,8 @@ export function createSolidMaterial(skin) {
|
|||
shininess: 0,
|
||||
polygonOffset : true,
|
||||
polygonOffsetFactor : 1,
|
||||
polygonOffsetUnits : 2
|
||||
polygonOffsetUnits : 2,
|
||||
side: DoubleSide,
|
||||
}, skin));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue