xeolabs / xeogl

A WebGL-based 3D engine for technical visualization. Not actively maintained.
http://xeogl.org
Other
1.14k stars 264 forks source link

Primitive broken in examples #204

Closed mobiusVision closed 6 years ago

mobiusVision commented 6 years ago
Description of the problem

Property Primitive :

xeogl.min.js:19 [ERROR] [xeogl.Entity '103B951D-F208-44E4-B61A-AB87920CBC9F']: Draw program failed to link

Varyings with the same name but different type, or statically used varyings in fragment shader are not declared in vertex shader: vViewNormal

Vertex shader:

xeogl version
Browser
OS
Hardware Requirements
xeolabs commented 6 years ago

Thanks - which example does this happen with?

mobiusVision commented 6 years ago

@xeolabs Unfortunately, all examples related to 'primitives' are broken when changing primitives in the section Geometry. In fact, when I load an obj file, then set the primitives to have the wireframe mode, nothing shows up. T_T

xeolabs commented 6 years ago

To reduce complexity of xeogl, I've actually made the Geometry "primitive" property immutable, only able to be set within the Geometry constructor. Sorry if this causes problems!