sourcevault
sourcevault

Reputation: 323

disable backface culling for imported .obj file three.js

I am having difficulty turning off wire frame rendering at the backside of my car.

How do you turn off backface culling in wire frame mode for three.js ?

https://i.sstatic.net/P07lt.jpg

Upvotes: 5

Views: 4816

Answers (1)

kdrnic
kdrnic

Reputation: 511

Use

{side: THREE.DoubleSide}

when defining your materials as seen in the Materials documentation of three.js.

Upvotes: 6

Related Questions