Three.js: a problem about buffergeometry flatShading:true

Created on 27 Jun 2018  路  11Comments  路  Source: mrdoob/three.js

I have producted a buffergeometry with the great js-lab.and,i set the material as new THREE.MeshLambertMaterial({flatShading:true});,but,i found it didn't work.oh,hoping somebody can help me!

Most helpful comment

Sry, the question was overlooked. I've added an answer with a live example and a reference to #7130.

All 11 comments

Wrong place to come for help buddy. Try forums, stackoverflow or discord instead.

thank u,a guiding answer.

Here is the link to the forum: https://discourse.threejs.org/

Why is this considered a help question?

You mean because flatShading has not effect for MeshLambertMaterial?

Without expressing my opinion, I was just curious as to why this is considered a help question.

Should we do delete this.flatShading; in the MeshLambertMaterial so a warning gets logged in the console if someone tries to set flatShading?

Or we delete the flag from Material and only add it to certain derived materials. In context of inheritance, it's the more valid approach from my point of view.

@Mugen87 Sounds good! 馃憤

I think this is a reasonable question for a user to ask.

Since MeshLambertMaterial has a flatShading property, it is reasonable to expect it to work.

I think if a user is directed to a help site, a responsible person should go there and answer the question. It has been two months now, and the user still has no answer.

https://discourse.threejs.org/t/why-a-flatshading-true-dosent-work/3259

Sry, the question was overlooked. I've added an answer with a live example and a reference to #7130.

Was this page helpful?
0 / 5 - 0 ratings