WebGL: texture access in vertex shader?

Is it possible to read the texture in the vertex neck using WebGL?

I wrote a page

+6
webgl textures vertex-shader
source share
2 answers

This is actually not a bug in Chrome.

Vertex texture access is not a required feature of Open GL ES 2, which is the basis of the WebGL specification. I suspect what might happen is that although your base GL driver supports vertex text access, you have now switched to Chrome using Angle, and Angle doesn't report that vertex text access is available.

You can compare your versions of FF and Chrome using

Thatcher Ulrich

http://webgl-bench.appspot.com/

This parameter has the MAX_VERTEX_TEXTURE_IMAGE_UNITS parameter (closer to the end). Chrome / Angle always reports 0.t

Another thing to check is that you are using the correct texture2D syntax - the specification has changed, and it may be that FF supports the older syntax.

+5
source share

He would like to comment, but I have no reputation.

As alanatmech said, it can be associated with Angle, which forwards all GL calls to DirectX. Thus, this is not a disabling feature, but the advantage of having WebGL support on Windows machines without OpenGL drivers.

You can try running Chrome with "--use-gl = desktop", so instead of Angle, it will use OpenGL backend rendering. Your site does not work for me with the beta version of Chrome 8.0.552.215, but it does not give the error you mention that I get in Chrome 9.0.597.10, which is supported by Canary build without the And flag on Minefield.

+2
source share

All Articles