BabylonJS / OldDocumentationSite

Babylon.js documentation page
http://doc.babylonjs.com
Apache License 2.0
66 stars 188 forks source link

Add some docs for twoSidedLighting and forceNormalForward #2049

Closed Popov72 closed 4 years ago

Popov72 commented 4 years ago

See https://forum.babylonjs.com/t/separatecullingpass-knocks-out-twosidedlighting/14615/6

fooware commented 4 years ago

Might I suggest this text instead:

twoSidedLighting will not take effect if separateCullingPass is enabled. For double sided, transparent PBR materials you can instead use forceNormalForward = true, which will result in practically the same same effect. If used, you can set twoSidedLighting = false to slightly improve shader performance.

Popov72 commented 4 years ago

No problem!