Skip to content
New issue

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

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

Already on GitHub? # to your account

"extension `GL_ARB_gpu_shader5' unsupported in vertex shader" #75

Open
ghost opened this issue Apr 17, 2019 · 3 comments
Open

"extension `GL_ARB_gpu_shader5' unsupported in vertex shader" #75

ghost opened this issue Apr 17, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 17, 2019

when loading the app in web browser, an error message shows in console:
In Chromium:
[.WebGL-0x56087d1b8bb0]GL ERROR :GL_INVALID_ENUM : glGetIntegerv: pname was GL_MAX_SAMPLES_ANGLE

In firefox

THREE.WebGLRenderer 103 shriveling.js:2:292410
THREE.WebGLShader: gl.getShaderInfoLog() vertex 0:2(12): warning: extension `GL_ARB_gpu_shader5' unsupported in vertex shader
 
1: precision highp float;
2: precision highp int;
3: #define SHADER_NAME LineBasicMaterial
4: #define VERTEX_TEXTURES
5: #define GAMMA_FACTOR 2
6: #define MAX_BONES 0
7: #define BONE_TEXTURE
8: uniform mat4 modelMatrix;
9: uniform mat4 modelViewMatrix;
10: uniform mat4 projectionMatrix;
11: uniform mat4 viewMatrix;
12: uniform mat3 normalMatrix;
13: uniform vec3 cameraPosition;
14: attribute vec3 position;
15: attribute vec3 normal;
16: attribute vec2 uv;
17: #ifdef USE_TANGENT
18: 	attribute vec4 tangent;
19: #endif
20: #ifdef USE_COLOR
21: 	attribute vec3 color;
22: #endif
23: #ifdef USE_MORPHTARGETS
24: 	attribute vec3 morphTarget0;
25: 	attribute vec3 morphTarget1;
26: 	attribute vec3 morphTarget2;
27: 	attribute vec3 morphTarget3;
28: 	#ifdef USE_MORPHNORMALS
29: 		attribute vec3 morphNormal0;
30: 		attribute vec3 morphNormal1;
31: 		attribute vec3 morphNormal2;
32: 		attribute vec3 morphNormal3;
33: 	#else
34: 		attribute vec3 morphTarget4;
35: 		attribute vec3 morphTarget5;
36: …
shriveling.js:2:242692
THREE.WebGLShader: gl.getShaderInfoLog() fragment 0:2(12): warning: extension `GL_ARB_gpu_shader5' unsupported in fragment shader
 
1: precision highp float;
2: precision highp int;
3: #define SHADER_NAME LineBasicMaterial
4: #define GAMMA_FACTOR 2
5: uniform mat4 viewMatrix;
6: uniform vec3 cameraPosition;
7: #define TONE_MAPPING
8: #ifndef saturate
9: 	#define saturate(a) clamp( a, 0.0, 1.0 )
10: #endif
11: uniform float toneMappingExposure;
12: uniform float toneMappingWhitePoint;
13: vec3 LinearToneMapping( vec3 color ) {
14: 	return toneMappingExposure * color;
15: }
16: vec3 ReinhardToneMapping( vec3 color ) {
17: 	color *= toneMappingExposure;
18: 	return saturate( color / ( vec3( 1.0 ) + color ) );
19: }
20: #define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )
21: vec3 Uncharted2ToneMapping( vec3 color ) {
22: 	color *= toneMappingExposure;
23: 	return saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );
24: }
25: vec3 OptimizedCineonToneMapping( vec3 color ) {
26…
shriveling.js:2:242692

@ghost ghost added the bug label Apr 17, 2019
@ghost ghost assigned bilLkarkariy Apr 17, 2019
@ghost
Copy link
Author

ghost commented Apr 19, 2019

problem is non existent on my laptop with

  • Ubuntu 18.04
  • Chromium 73
  • Firefox 66

Will check versions on my desktop next time in office!

@ghost
Copy link
Author

ghost commented Apr 25, 2019

occurs with

  • Ubuntu 16.04 LTS
  • Chromium 71
  • Firefox 65

Have asked my systm admin to update the browsers to check if this is the cause of the issue

@ghost
Copy link
Author

ghost commented Apr 26, 2019

On a fresh virtualbox Ubuntu 18.04 machine:

  • error with Firefox 66
  • works fine with Chromium 73

@ghost ghost mentioned this issue Apr 26, 2019
@ghost ghost added browser bug wontfix and removed bug labels May 2, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant