I am having some trouble with thepreprocessor statement. When I useCode :#versionfor example I get the following error:Code :#version 130Code :Vertex shader failed to compile with the following errors: ERROR: 0:1: error(#76) Syntax error unexpected tokens following #version ERROR: error(#273) 1 compilation errors. No code generated
The reason why I want to change the version from 110 to 130: I wanted to do something like thisHowever, the compiler says:Code :mat3 normalMatrix = transpose(inverse(mat3x3(modelViewMatrix)));so I thought maybe this can be fixed by increasing the version.Code :ERROR: 0:1: error(#202) No matching overloaded function found inverse ERROR: 0:1: error(#202) No matching overloaded function found transpose ERROR: 0:1: error(#160) Cannot convert from 'const float' to '3X3 matrix of float'



Reply With Quote
. The weird thing is, if I write