RampDiffuse纠错——Error:incorrect number of arguments to numeric-type constructor
来源:互联网 发布:js数组中添加对象 编辑:程序博客网 时间:2024/06/01 09:32
看着Shaders and Effects Cookbook的书籍学习shader,照着说上写ramp Diffuse这个shader时,报了个错。
Shader书上的源代码是这样的:
画红线的那一行报了这样的一个错:
最终正确代码如下:
猜测原因是旧版的unity支持的是float2(diff)支持,新版的是float2(param1,param2)
有更详细的解释的可以说明,欢迎交流
0 0
- RampDiffuse纠错——Error:incorrect number of arguments to numeric-type constructor
- Error Code: 1318. Incorrect number of arguments for PROCEDURE student.new_procedure; expected 0, got
- Error Code: 1318. Incorrect number of arguments for PROCEDURE company.new_procedure; expected 2, got
- C++学习之Numeric overflow due to incorrect type casting
- syntax error; found ` ; ' expecting ` )' 和Error TCC: insufficient number of arguments to `IIC_RegRead'
- SQLServerException: Arithmetic overflow error converting numeric to data type numeric(1)
- SQLServerException: Arithmetic overflow error converting numeric to data type numeric(2)
- type error:this constructor takes no arguments的错误提示(python)
- 1318:Incorrect number of arguments for PROCEDURE worker.wage_alterdata; expected 7, got 6 [ SQL语句 ]
- wrong number of arguments
- Incorrect number of FETCH variables
- Matlab出现On Startup: Error using eval undefined function 'workspacefunc' for input arguments of type
- Matlab出现On Startup: Error using eval undefined function 'workspacefunc' for input arguments of type
- No enclosing instance of type SearchCommand is available due to some intermediate constructor invoca
- No enclosing instance of type WallpaperService is available due to some intermediate constructor inv
- No enclosing instance of type Test37 is available due to some intermediate constructor invocation
- niagara编译错误:using type arguments to access generic types requires the use of "-source 1.5"
- ORA-06553: PLS-306: wrong number or types of arguments in call to 'xxxxxxx(proceduresName)'
- 设计模式之装饰者模式12
- JS 设置物体居中
- LeetCode----29. Divide Two Integers (两数相除)
- JS
- 微信Android热补丁实践演进之路
- RampDiffuse纠错——Error:incorrect number of arguments to numeric-type constructor
- 第一篇博客
- 经典SQL语句大全——(一)基础
- Eclipse配置
- Unsupported major.minor version …
- Weka使用之属性选择
- Android安全加密:消息摘要Message Digest
- 免安装Oracle客户端使用PL/SQL连接…
- PowerDesigner 逆向工程