Errors
文章平均质量分 66
wolf96
Welcome, I'm Lin Dong. I am an U3D Programmer in ShangHai, I love Game Developing and Rendering, I will be absorbed in it.here is my GitHub URL https://github.com/wolf96
email URL wolf_crixus@sina.cn
展开
-
unity3d "vert": output parameter ' ' not completely intialized的解决方法
在vert函数中加入一句UNITY_INITIALIZE_OUTPUT(Input,参数名);即可例如 void vert (inout appdata_full v, out Input o) { UNITY_INITIALIZE_OUTPUT(Input,o); }原因:在/Data/CGIncludes中原创 2015-01-28 16:43:58 · 7339 阅读 · 3 评论 -
问题总结-AlphaTest在forward管线生成DepthNormalsTexture的问题
在Forward管线中,如果后期需要用到法线贴图,需要将相机depthTextureMode 的Flag设置为DepthNormals在相机面板可以确认这样的话会把物体走一遍"Hidden/Internal-DepthNormalsTexture"来渲染出一张屏幕的Normal和Depth"Hidden/Internal-DepthNormalsTexture"有很...原创 2018-12-20 14:30:37 · 1132 阅读 · 1 评论 -
Unity 报错解决方法:Standard Shader Invalid Subscript uv2 error
It is not anything to do with you. There is a problem with the UNITY_PASS_META not being defined properly on import or when a shader gets recompiled in 2018.1.To "fix" it, you can right click the sh...原创 2018-11-08 11:25:50 · 4516 阅读 · 0 评论 -
Unity安卓报错解决方法:android.content.res.Resources$NotFoundException
参考:https://forum.unity.com/threads/android-content-res-resources-notfoundexception.162246/https://forum.unity.com/threads/resource-not-found.81943/原理是这样的http://tools.android.com/recent/dealing原创 2018-01-10 10:58:46 · 2458 阅读 · 0 评论 -
Unity4.3.3 烘焙踩坑
许久没发文章了,开始实习了,挺忙的基本没什么时间了unity4.3.3是一个非常古老的版本了,弄了一下烘焙,踩了不少坑,首先是unity自带的nature shader,其中有soft occlusion系列的shader相信不少人拿来做树了(还有草等植物),但是bake之后发现有阴影,而且阴影很漂亮,但是树没了,对模型generate lightmap uv也不行,查了一下,发现也是有人原创 2016-07-27 19:34:21 · 2749 阅读 · 0 评论 -
unity3d中post-processing时屏幕翻转的处理方法
参考:http://docs.unity3d.com/Manual/SL-PlatformDifferences.htmlVertical texture coordinate conventions differ between Direct3D-like and OpenGL-like platforms:In Direct3D, Metal and console原创 2016-03-13 08:39:51 · 3847 阅读 · 0 评论 -
修改unity GI cache位置
太占c盘了有没有,默认是10G的范围,本来博主c盘就45G,晒一下图片,呵呵呵然后博主我就这个表情,没事随手删删temp文件什么的万万没想到,凶手其中之一是unity的GI cache改位置吧,随时清清吧。。。Unity > Preferences (Mac) or Edit > Preferences (Win)就能看到GI cache这一项了 ----原创 2015-12-20 20:22:48 · 9148 阅读 · 2 评论 -
shader error: unable to unroll loop, loop does not appear to terminate in a timely manner的解决办法
使用tex2Dlod或者tex2Dgrad原创 2015-12-20 20:02:50 · 2951 阅读 · 0 评论 -
Unity3d NGUI doesn't have a clipped shader version for SoftClip 和 AlphaClip错误的解决方法
把shader名改为XXX/XXXXX (SoftClip)或XXX/XXXXX (AlphaClip)即可或者在UIPanel中把Clipping改为None原创 2015-04-28 12:55:32 · 2199 阅读 · 0 评论 -
Shader error in 'xxx': Arithmetic instruction limit of 64 exceeded....的解决方法
Shader error in 'xxx': Arithmetic instruction limit of 64 exceeded; 65 arithmetic instructions needed to compile program需要定义#pragma target 3.0#pragma target 2.0 (default) - roughly s原创 2015-04-04 13:41:32 · 2943 阅读 · 0 评论 -
开启stripping遇到的问题
在手机上会遇到Could not produce class with ID***的问题,是因为Unity strip掉了用到的脚本如果是非UnityEngine.dll中的类,会报not found的错,需要new一下改类参考:https://blog.csdn.net/huutu/article/details/43986079如果是UnityEngine.dll中的需要在...原创 2019-02-28 12:57:44 · 833 阅读 · 0 评论