Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3500578
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:45:05+00:00 2026-05-18T12:45:05+00:00

Is it possible to read from a texture in a vertex shader with WebGL?

  • 0

Is it possible to read from a texture in a vertex shader with WebGL?

I wrote a WebGL page (just to try it out) and used Chrome 7 to test it. As soon as I upgraded to Chrome 8, it stopped working. I double checked that webgl is enabled. The error is:

‘texture2D’: no matching overloaded function found

When I replace the call to texture2D with a constant, it works.
Texture access in a fragment shader using the same texture also works.

Anyone have any ideas? I’m particularly thrown by the fact that upgrading Chrome caused it to break.

Update: It works in firefox 4 beta. I reported a bug with Chrome – issue 65340

Update 2: It now works in Firefox and Chrome

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:45:06+00:00Added an answer on May 18, 2026 at 12:45 pm

    Its not really 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 be happening is that although your underlying GL driver supports vertex texture access, now you’ve switched to Chrome its using Angle, and Angle doesn’t report that vertex texture access as available.

    You can compare your FF and Chrome versions by using Thatcher Ulrich’s

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

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

    Another thing to check is that you are using the correct texture2D syntax – the spec changed and it may be that FF is stil supporting the older syntax.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From what I've read about Windsor/Microkernel it is in theory possible to do everything
I read an interesting DailyWTF post today, Out of All The Possible Answers... and
Is it possible to read from a SQLite db while it's being written to?
Is it possible to read from a sqlite database while it is being written
I know that its possible to read from a .txt file and then convert
I'm wondering if it is possible to list/read emails from Silverlight app in Windows
Is it possible to read a disk directly with .NET? By directly, I mean
Is it possible to read and write Word (2003 and 2007) files in Python
Is it possible to read and write Word (2003 and 2007) files in PHP
Is it possible to read the data in the php $_SESSION array in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.