New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader compiler error with MeshTweening on Pi #523

Closed
gohai opened this Issue Feb 17, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@gohai
Contributor

gohai commented Feb 17, 2017

@codeanticode Getting the following error message with GLES2: ERROR:SEMANTIC-4 (vertex shader, line 12) Operator not supported for operand types. Here's the shader:

uniform mat4 transformMatrix;
uniform float tween;

attribute vec4 position;
attribute vec4 tweened;
attribute vec4 color;

varying vec4 vertColor;

void main() {
  gl_Position = transformMatrix * ((1- tween) * position + tween * tweened);
    
  vertColor = color;
}

Does this look good to you? No use digging deeper on this one, just thought I point it out in case it's something trivial. (I don't know anything about shaders myself.)

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Feb 17, 2017

Member

what happens if you do:

gl_Position = transformMatrix * ((1.0 - tween) * position + tween * tweened);
Member

codeanticode commented Feb 17, 2017

what happens if you do:

gl_Position = transformMatrix * ((1.0 - tween) * position + tween * tweened);

gohai added a commit that referenced this issue Feb 17, 2017

Fix MeshTweening vertex shader (#523)
On the Raspberry Pi's GLES2 driver, this failed with: ERROR:SEMANTIC-4 (vertex shader, line 12) Operator not supported for operand types
@gohai

This comment has been minimized.

Show comment
Hide comment
@gohai

gohai Feb 17, 2017

Contributor

Yes. Fantastico! Please review PR @codeanticode

Contributor

gohai commented Feb 17, 2017

Yes. Fantastico! Please review PR @codeanticode

@gohai gohai closed this Feb 17, 2017

gohai added a commit that referenced this issue Feb 17, 2017

Fix MeshTweening vertex shader (#523)
On the Raspberry Pi's GLES2 driver, this failed with: ERROR:SEMANTIC-4 (vertex shader, line 12) Operator not supported for operand types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment