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

来源:互联网 发布:apache默认网站目录 编辑:程序博客网 时间:2024/05/23 19:20

"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.

0 0
原创粉丝点击