片段着色器:“没有匹配的重载函数找到”错误
问题描述:
的问题来自于天壤之别功能:片段着色器:“没有匹配的重载函数找到”错误
vec3 mandelbrot (vec2 coord){
vec2 z0 = vec2(0.0, 0.0);
int number = fractal (z0, coord, 10000);
float v = float(number);
float factor = 0.0;
return paletize (v, factor);
}
int fractal (vec2 z0, vec2 c, int maxIterations){
//doesn't matter
}
vec3 paletize (float v, float factor){
doesn't matter
}
,这里是错误消息:https://gyazo.com/5516853ee2600b58a303fd609530fafe
片段着色器无法编译:错误日志是:
ERROR:0:13 ´fractal´:no matching overloaded function found ERROR:0.13: '=' : cannot convert from const float to mediump int ERROR:0:19: ´paletize´: no matching overloaded function found ERROR:0:19: ´return´: function return is not matching type:
错误消息现在有 – Besta