You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this the best place to declare this? Would it made more sense to have it set within the material?
Is this a more logical place to put it as materials effect how things look?
Threejs does this
material = new THREE.MeshBasicMaterial({
color: 0xff0000,
wireframe: true
});
BabylonJs does this
var myMaterial = new BABYLON.StandardMaterial("myMaterial", scene);
myMaterial.wireframe = true;
This reasoning breaks down if the primitive type given in the geometry also supports things like TRIANGLE_STRIP,TRIANGLE FAN ETC.
What does everyone think?
The text was updated successfully, but these errors were encountered:
To sum up, should the drawing primitive be tied to geometry or material. Wireframe is a bit different than just setting the primitive to LINES. Three.js has the primitive on the mesh level: https://threejs.org/docs/#api/en/constants/DrawModes
It does affect how things look and is related to a program so I tend to agree with moving it in the Material which is already handling blend, depth, culling...
Currently you set the primitive when you define the geometry
eg:
Is this the best place to declare this? Would it made more sense to have it set within the material?
Is this a more logical place to put it as materials effect how things look?
Threejs does this
BabylonJs does this
This reasoning breaks down if the primitive type given in the geometry also supports things like
TRIANGLE_STRIP
,TRIANGLE FAN
ETC.What does everyone think?
The text was updated successfully, but these errors were encountered: