您的位置:首页 > 其它

'pow' : no matching overloaded function found \n"

2015-12-13 02:11 3991 查看
"float spec=pow(max(dot(cameraDir,reflectDir),0.0),32);"

Fragment Shader Compile Error!

message = 0x009df15c "ERROR: 0:1: 'pow' : no matching overloaded function found \n"

I find the answer by check StackOverFlow。

the second param of pow() is defined as float.so i changed to

"float spec=pow(max(dot(cameraDir,reflectDir),0.0),32.0);"

it works good.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: