[Unity 纠错] Too many texture interpolators would be used for ForwardBase pass at line
来源:互联网 发布:好玩的手机rpg 知乎 编辑:程序博客网 时间:2024/05/20 12:21
在unity console中错误信息如下 :
Shader error in 'Custom/Sky_Shader': Too many texture interpolators would be used for ForwardBase pass at line 19
错误原因是在报错Shader里,在结构体Input中定义了大于等于3个的额外的uv变量信息。
下面是报错的Shader的Input结构体
struct Input {float2 offset1;float2 offset2;float2 offset3;float4 pos;fixed4 color;};
下面是纠正后的Shader的Input结构体
struct Input {float2 offset1;float2 offset2;float4 pos;fixed4 color;};
那么如果需要offset3变量记录信息怎么做呢,我所学到的没有特别好办法,就是用offset1和offset2去做变化代替offset3做信息记录处理。
一般情况main_tex,bumpMap和specMap可以使用相同的uv集.
0 0
- [Unity 纠错] Too many texture interpolators would be used for ForwardBase pass at line
- Too many texture interpolators would be used for ForwardBase pass
- <shader>编程中遇到的问题-too many texture interpolators would be used for ForwardBase pass
- 欧拉项目 Problem 17 of how many letters would be used?
- Too many constants, the constant pool for ***_jsp would exceed 65536 entries
- CircuitBreakingException[[FIELDDATA] Data too large, data for [proccessDate] would be larger than li
- ./runInstaller: line 50: [: too many arguments
- ERROR 23 (HY000) at line 1: Out of resources when opening file '/tmp/tbs.log' (Errcode: 24 "Too many
- Bitmap too large to be uploaded into a texture
- Shape path too large to be rendered into a texture
- Bitmap too large to be uploaded into a texture 解决方法
- Bitmap too large to be uploaded into a texture exception
- Bitmap too large to be uploaded into a texture
- Bitmap too large to be uploaded into a texture
- Bitmap too large to be uploaded into a texture
- Bitmap too large to be uploaded into a texture
- Bitmap too large to be uploaded into a texture 解决方案
- Bitmap too large to be uploaded into a texture 解决方法
- Google谷歌打不开2014最新解决方法
- 几种常见模式识别算法整理和总结
- C语言程序设计学习笔记一
- 推送一份FD的工具箱至gitcafe
- 展讯2015年校园招聘数字工程师试题(回忆版)
- [Unity 纠错] Too many texture interpolators would be used for ForwardBase pass at line
- osx平台调用curl_multi_exec失败脚本死循环
- c 语言中的setjmp和longjmp
- 杭电acm2014青年歌手大奖赛_评委会打分
- 寻找字符串中连续出现次数最多的子串
- 微软 VC++ 常用API汇总
- Linux 安装mysql和php
- 【连载一】一个让小白和女友都能轻松学会的linux教程
- Linux虚拟机用ssh登录不了,解决方法。