[x3d-public] shader question: should X3DVertexAttributeNode name be required?

Michalis Kamburelis michalis.kambi at gmail.com
Tue Mar 21 17:56:18 PDT 2017


2017-03-19 1:53 GMT+01:00 Don Brutzman <brutzman at nps.edu>:
> spec sayeth:
>
> ==========================================
> 31.3.3 X3DVertexAttributeNode
> http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/shaders.html#X3DVertexAttributeNode
>
> X3DVertexAttributeNode : X3DGeometricPropertyNode {
>   SFNode   [in,out] metadata NULL [X3DMetadataObject]
>   SFString []       name     ""
> }
> The name field describes a name that is mapped to the shading
> language-specific name for describing per-vertex data. The appropriate
> shader language annex (see Table 31.2) annex contains language-specific
> binding information.
> ==========================================
>
> X3DVertexAttributeNode is implemented by FloatVertexAttribute,
> Matrix3VertexAttribute and Matrix4VertexAttribute nodes.
>
> Wondering, should the name field be required?  Currently it is not.
>

I think the "name" should be required. The attributes are associated
with the shader variables by their name -- without a name, the
X3DVertexAttributeNode doesn't make much sense.

And the "name" is an "initializeOnly" field, so you cannot set it
later by X3D events.

Regards,
Michalis



More information about the x3d-public mailing list