Unity3D修改LWRP,HDRP的几项小问题及解决
2018-09-04 22:42
1026 查看
最近在看Book of the Dead的demo,其中对HDPR进行修改以构建自己的SRP,于是自己尝试了下。。
一般直接去Github下载对应unity版本的SRP工程:
https://github.com/Unity-Technologies/ScriptableRenderPipeline
将com.unity.render-pipelines.core和你需要的管线放到统一目录中,它们对PostProcessing有依赖,也需要去github下载一份对应的版本。
下载好后在对应管线的Editor目录下有一个ShaderGraph的文件夹,如果用不到ShaderGraph可以直接删去(旧版本的demo也是删去的)。
注意Assembly Definition的链接可能有丢失,重新绑定一下即可。
目录如下:
下面是重点,shader的链接此时会报错 failed to open source file: 'LWRP/...
本以为2018版本的项目配置里可以配置shader的相对根位置,结果发现是在脚本里。。。。
这个也是Book of the Dead demo里的,所以想要了解管线推荐多看下那个demo。
static class ShaderPathIncludeConfig { [ShaderIncludePath] public static string[] ShaderPaths() { return new string[] { "Assets/LocalPipe/com.unity.render-pipelines.core", "Assets/LocalPipe/com.unity.render-pipelines.lightweight", }; } }
写一个Editor类,函数挂上ShaderIncludePath特性即可。
这样就可以使用并进行修改了,关掉skybox的绘制测试下,ok:
相关文章推荐
- java 修改删除返回当前页面问题解决办法
- 修改JAVA_HOME无效,java版本保持不变的问题解决
- Unity3d发布WebPlayer版本遇到的问题的解决方法
- openerp学习笔记 计算字段、关联字段(7.0中非计算字段、关联字段只读时无法修改保存的问题暂未解决)
- Linux中Wine QQ上线 转变成离线问题的解决(什么时候才能自己修改?)(qq2012出了 那个没有这个BUG)
- 修改CentOS7,修改默认语言环境,解决中文乱码问题。
- 教您不用修改代码彻底解决IE6PNG不透明的问题
- 解决unity3d 4.5 编译ios8 横屏问题
- html文件修改后缀为aspx之后在ie6中格式显示不正确问题的解决办法
- netbean中文显示为方块问题解决【无需修改配置文件】
- 解决密码中包含{},密码修改成功后, 查询分析器无法用此密码登录的问题
- Python解决excel修改问题和中文不兼容问题
- intellij spring boot 添加热部署步骤及添加之后修改文件没有效果的问题解决
- WINDCHILL项目模板导出压缩包后修改里面的配置文件,然后再压缩导不进去的问题解决办法
- 手动修改注册表来解决开机自动打开网页的问题
- 修改Myeclipse默认的Libraries包集合(用于解决包冲突问题)
- java 解决时间差8个小时的问题、Linux系统中时区的修改及tomcat时区的修改
- 修改Tomcat的字符编码配置解决乱码问题
- utf-8转换为ansi和修改文件名的批处理(可解决source insight中文注释乱码问题)
- 微信小程序遇到修改数据后页面不渲染的问题解决