SRB2-Mobile / SRB2-Android

GNU General Public License v2.0
69 stars 12 forks source link

Cannot compile shaders #101

Open Delyae opened 1 month ago

Delyae commented 1 month ago

I cannot use shaders i want to use the A.S.S shader :( Ill try to copy my log text...

Delyae commented 1 month ago

‚WARNING:€ Shader_Compile: Could not compile custom shader program for Flat …ERROR:€ Shader_CompileProgram: Error compiling fragment shader (WallTexture) ERROR: 0:12: 'const' : non-matching types for const initializer
ERROR: 0:19: '-' : wrong operand types no operation '-' exists that takes a left-hand operand of type 'const int' and a right operand of type 'float' (or there is no acceptable conversion) ERROR: 0:19: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'const int' and a right operand of type 'const float' (or there is no acceptable conversion) ERROR: 0:19: '=' : cannot convert from 'const int' to 'float' ERROR: 0:24: '/' : wrong operand types no operation '/' exists that takes a left-hand operand of type 'in float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:26: '-' : wrong operand types no operation '-' exists that takes a left-hand operand of type 'const int' and a right operand of type 'float' (or there is no acceptable conversion) ERROR: 0:26: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'const int' and a right operand of type 'const float' (or there is no acceptable conversion) ERROR: 0:26: '=' : cannot convert from 'const int' to 'float' ERROR: 0:33: '-' : wrong operand types no operation '-' exists that takes a left-hand operand of type 'const int' and a right operand of type 'float' (or there is no acceptable conversion) ERROR: 0:33: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'const int' and a right operand of type 'const float' (or there is no acceptable conversion) ERROR: 0:33: '=' : cannot convert from 'const int' to 'float' ERROR: 0:37: '<' : wrong operand types no operation '<' exists that takes a left-hand operand of type 'float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:38: '/' : wrong operand types no operation '/' exists that takes a left-hand operand of type 'in float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:42: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:61: '<' : wrong operand types no operation '<' exists that takes a left-hand operand of type 'float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:87: '<' : wrong operand types no operation '<' exists that takes a left-hand operand of type 'float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:114: 'gl_TexCoord' : undeclared identifier ERROR: 0:114: 'expression' : left of '[' is not of type array, matrix, or vector
ERROR: 0:114: 'st' : field selection requires structure, vector, or matrix on left hand side ERROR: 0:114: 'texture2D' : no matching overloaded function found ERROR: 0:114: '=' : cannot convert from 'const float' to '4-component vector of float' ERROR: 0:125: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'in float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 0:126: '/' : wrong operand types no operation '/' exists that takes a left-hand operand of type 'float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 23 compilation errors. No code generated.

‚WARNING:€ Shader_Compile: Could not compile custom shader program for WallTexture …ERROR:€ Shader_CompileProgram: Error compiling fragment shader (Sprite) ERROR: 0:12: 'const' : non-matching types for const initializer
ERROR: 0:63: 'gl_TexCoord' : undeclared identifier ERROR: 0:63: 'expression' : left of '[' is not of type array, matrix, or vector
ERROR: 0:63: 'st' : field selection requires structure, vector, or matrix on left hand side ERROR: 0:63: 'texture2D' : no matching overloaded function found ERROR: 0:63: '=' : cannot convert from 'const float' to '4-component vector of float' ERROR: 0:74: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'in float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 0:75: '/' : wrong operand types no operation '/' exists that takes a left-hand operand of type 'float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 8 compilation errors. No code generated.

‚WARNING:€ Shader_Compile: Could not compile custom shader program for Sprite …ERROR:€ Shader_CompileProgram: Error compiling fragment shader (Model) ERROR: 0:58: 'gl_TexCoord' : undeclared identifier ERROR: 0:58: 'expression' : left of '[' is not of type array, matrix, or vector
ERROR: 0:58: 'st' : field selection requires structure, vector, or matrix on left hand side ERROR: 0:58: 'texture2D' : no matching overloaded function found ERROR: 0:58: '=' : cannot convert from 'const float' to '4-component vector of float' ERROR: 0:69: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'in float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 0:70: '/' : wrong operand types no operation '/' exists that takes a left-hand operand of type 'float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 7 compilation errors. No code generated.

‚WARNING:€ Shader_Compile: Could not compile custom shader program for Model …ERROR:€ Shader_CompileProgram: Error compiling fragment shader (WaterRipple) ERROR: 0:20: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'float' and a right operand of type 'const int' (or there is no acceptable conversion) ERROR: 0:60: 'gl_TexCoord' : undeclared identifier ERROR: 0:60: 'expression' : left of '[' is not of type array, matrix, or vector
ERROR: 0:60: 's' : field selection requires structure, vector, or matrix on left hand side ERROR: 0:60: 'expression' : left of '[' is not of type array, matrix, or vector
ERROR: 0:60: 't' : field selection requires structure, vector, or matrix on left hand side ERROR: 0:71: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'in float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 0:72: '/' : wrong operand types no operation '/' exists that takes a left-hand operand of type 'float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 8 compilation errors. No code generated.

‚WARNING:€ Shader_Compile: Could not compile custom shader program for WaterRipple …ERROR:€ Shader_CompileProgram: Error compiling fragment shader (Fog) ERROR: 0:49: 'gl_Color' : undeclared identifier ERROR: 0:49: '=' : cannot convert from 'float' to '4-component vector of float' ERROR: 0:58: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'in float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 0:59: '/' : wrong operand types no operation '/' exists that takes a left-hand operand of type 'float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 4 compilation errors. No code generated.

‚WARNING:€ Shader_Compile: Could not compile custom shader program for Fog …ERROR:€ Shader_CompileProgram: Error compiling fragment shader (Sky) ERROR: 0:3: 'gl_TexCoord' : undeclared identifier ERROR: 0:3: 'expression' : left of '[' is not of type array, matrix, or vector
ERROR: 0:3: 'st' : field selection requires structure, vector, or matrix on left hand side ERROR: 0:3: 'texture2D' : no matching overloaded function found ERROR: 0:3: 'assign' : cannot convert from 'const float' to 'FragColor 4-component vector of float' ERROR: 0:8: '' : wrong operand types no operation '' exists that takes a left-hand operand of type 'in float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 0:9: '/' : wrong operand types no operation '/' exists that takes a left-hand operand of type 'float' and a right operand of type 'in int' (or there is no acceptable conversion) ERROR: 7 compilation errors. No code generated.

‚WARNING:€ Shader_Compile: Could not compile custom shader program for Sky No maps added

bitten2up commented 1 month ago

srb2 android uses gles2 instead of what desktop srb2 uses which is iirc opengl 2.0

Delyae commented 4 weeks ago

Ohh.. can lactozilla change it? If yes, or no then i will mark this as solved

bitten2up commented 3 weeks ago

no, not really

Delyae commented 3 weeks ago

Oh. :(

Delyae commented 2 weeks ago

@Lactozilla can you help me with this and my other issue?