potree-core
potree-core copied to clipboard
Shader version error with three >0.152
I have to set "three": "0.152.0" in order to get it to load, when I do anything higher I get:
Program Info Log: Vertex shader is not compiled.
VERTEX
ERROR: 0:3: 'version' : #version directive must occur before anything else, except for comments and white space
ERROR: 0:21: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:22: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:23: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:24: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:25: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:26: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:27: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:28: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:93: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:94: 'out' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:98: 'out' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:200: 'round' : no matching overloaded function found
ERROR: 0:202: 'texture' : no matching overloaded function found
ERROR: 0:202: '=' : dimension mismatch
ERROR: 0:202: '=' : cannot convert from 'const mediump float' to 'highp 4-component vector of float'
ERROR: 0:203: 'round' : no matching overloaded function found
ERROR: 0:207: 'round' : no matching overloaded function found
ERROR: 0:208: 'round' : no matching overloaded function found
ERROR: 0:334: 'texture' : no matching overloaded function found
ERROR: 0:334: 'rgb' : field selection requires structure or vector on left hand side
ERROR: 0:334: '=' : dimension mismatch
ERROR: 0:334: '=' : cannot convert from 'const mediump float' to 'highp 3-component vector of float'
ERROR: 0:341: 'texture' : no matching overloaded function found
ERROR: 0:341: '=' : dimension mismatch
ERROR: 0:341: '=' : cannot convert from 'const mediump float' to 'highp 4-component vector of float'
ERROR: 0:362: 'texture' : no matching overloaded function found
ERROR: 0:362: 'rgb' : field selection requires structure or vector on left hand side
ERROR: 0:362: 'return' : function return is not matching type:
ERROR: 0:419: 'mix' : no matching overloaded function found
ERROR: 0:419: 'return' : function return is not matching type:
ERROR: 0:425: 'mix' : no matching overloaded function found
ERROR: 0:425: 'return' : function return is not matching type:
1: #define SHADER_TYPE RawShaderMaterial
2: #define SHADER_NAME
> 3: #version 300 es
4:
5:
6: #define tree_type_octree
7: #define adaptive_point_size
8: #define square_point_shape
9: #define color_type_rgb
FRAGMENT
ERROR: 0:3: 'version' : #version directive must occur before anything else, except for comments and white space
ERROR: 0:35: 'out' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:44: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
ERROR: 0:48: 'in' : storage qualifier supported in GLSL ES 3.00 and above only
1: #define SHADER_TYPE RawShaderMaterial
2: #define SHADER_NAME
> 3: #version 300 es
4:
5:
6: #define tree_type_octree
7: #define adaptive_point_size
8: #define square_point_shape
9: #define color_type_rgb