Skip to content
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

Cannot compile shaders #101

Open
Delyae opened this issue Aug 4, 2024 · 6 comments
Open

Cannot compile shaders #101

Delyae opened this issue Aug 4, 2024 · 6 comments

Comments

@Delyae
Copy link

Delyae commented Aug 4, 2024

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

@Delyae
Copy link
Author

Delyae commented Aug 4, 2024

‚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
Copy link
Contributor

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

@Delyae
Copy link
Author

Delyae commented Aug 17, 2024

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

@bitten2up
Copy link
Contributor

no, not really

@Delyae
Copy link
Author

Delyae commented Aug 19, 2024

Oh. :(

@Delyae Delyae closed this as completed Aug 19, 2024
@Delyae Delyae reopened this Aug 29, 2024
@Delyae
Copy link
Author

Delyae commented Aug 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants