top of page
Writer's picturefeng jessica

Code migration from Unity build-in pipeline to URP pipeline

Updated: Jan 13, 2022





involved technology: C#、Unity Shader、URP、HLSL、CG



This project was finished during my internship at Tencent. I am mainly responsible for the porting of part of the shader code and the optimization of the original shader.


Assisting my mentor to carry out code transplantation for the project. During the period, I became familiar with the implementation of the character PBR skin and eyeballs and the framework architecture URP shader. I learned a series of URP usage and code framework example projects. At the same time, learn the low-level source code of unity URP and summarize it.


Participated in the completion of the transplantation of some codes, such as the transplantation of the CG to HLSL code of the eyeball part.


The original shader is optimized, and the switch and shader feature for multi-light source calculation and SH calculation are added to prevent the eyeball from being too dark due to Ambient Occlusion and make the effect more natural.


The Switch for the new shader feature:


before And After:




24 views0 comments

Recent Posts

See All

Comments


bottom of page