Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
WebGL last attributes do not work in Chrome on Windows

I have this code in my vertex shader:

in vec3 geometry;
in vec4 offset; // xyz - offset, w sizeFactor
in vec4 rotationQuad;
in vec2 textureCoord;
in vec2 textureNr;
in highp float faceNumber;
in vec4 lightMatrix1;
in vec4 lightMatrix2;
in vec4 lightMatrix3;
in vec4 lightMatrix4;
in vec4 lightMatrix5;
in vec4 lightMatrix6;

The last two attributes "lightMatrix5" and "lightMatrix6" are not working in Chrome on Windows. In Firefox all works fine also on Chrome with Ubuntu Linux.

When I change the order of the attributes, the last two defined stop working. E.g:

in vec4 lightMatrix1;
in vec4 lightMatrix2;
in vec4 lightMatrix5;
in vec4 lightMatrix6;
in vec4 lightMatrix3;
in vec4 lightMatrix4;

Now the "lightMatrix3" and "lightMatrix4" do not work but the "lightMatrix5" and "lightMatrix6" work fine now.

The Parameters from WebGL look like this:

WebGLInfo::: WebGL 2 supported
WebGLInfo::: Max Vertex Attributes 16
WebGLInfo::: Max Varying Vectors 32
WebGLInfo::: Max Vertex Uniform Vectors 1024
WebGLInfo::: Max Fragment Uniform Vectors 1024

Possible attributes should be 16, I'm using 12 and the limit seams to be 10?

Any idea why it happens and how to solve it?

Thanks a lot!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I replaced the 4 vec4 (lightmatrix1-4) attributes with one mat4 attribute and it is working now. The attributes count seams to matter.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!