'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.
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.
相关文章推荐
- c# 四则混合运算算法
- 网络编程基础(2) : 同步非阻塞
- Java构造和解析Json数据的两种方法详解一
- hackthegame<第十一关>
- 广东省强网杯2015 writeup
- PAT1023
- centos7 install flash-plugin
- Android源码下载方法
- Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
- GIT远程操作详解
- struct 和 typedef struct
- GIT配置及常用命令
- 【Deep learning vs BPL】思考:complex => simple => rich
- GMM-HMM语音识别模型 原理篇
- HDOJ 5595 GTW likes math 【二次函数】
- 【Beta阶段】第一次Scrum Meeting!
- 最短路的理解(续)
- hackthegame<第十关>
- HDOJ 5596 GTW likes gt 【思维 】
- 错误