xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
75 stars 25 forks source link

Define a better default material #109

Open csvurt opened 9 years ago

csvurt commented 9 years ago

Currently objects without a material (shader) are rendered using a flat red shader. We want to keep this red shader as an error shader (in cases where an assigned material could not be rendered) and define a more appropriate default material for cases where no material is assigned.

The default material should take only 'position' as input data but still give a good estimation of the object's shape.