[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Is it possible to use multiple indexes in WebGL when drawing?
Of the top of my head, no. Although using Vertex Texture Fetch you could simulate this by packing indices and attributes into a texture and do the lookups explicitly in your vertex shader. VTF isn't available on some hardware, and there are some other caveats, like performance, and the precision of attributes pulled from a texture.
On Feb 11, 2011 2:05 AM, "Ivan Popov" <firstname.lastname@example.org
> Is it possible to use multiple indexes in WebGL when drawing?
> The idea is to use its own index for each attribute.
> For example:
> for the square:
> 0 4 1 4 2 4 0 4 3 4 2 4
> here in each pair of indices, first index - the index of the vertex, the
> second - the index of normal
> Best Regards, Ivan Popov.