您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
20 行
895 B
20 行
895 B
// NOTE: For performing a project upgrade where you temporarily support both old and new renderloops
|
|
// in the same sahder
|
|
//
|
|
// The basic approach is:
|
|
// Upgrade all your shaders to the new naming convention, using a SubShader that also contains the legacy // renderloop code.
|
|
//
|
|
// 1. Copy HDRenderloop Lit.shader into your project
|
|
// 2. Add a SubShader and copy old Standard shader passes into it.
|
|
// 2. Set LOD on subshader to make Unity pick at runtime to use new renderloop shaders or
|
|
// legacy standard shaders based on if SRL is enabled or not.
|
|
// In the legacy standard shader section add
|
|
// #include "PatchStandardShaderToNewNamingConvention.cginc"
|
|
|
|
// List of name remaps
|
|
#define _MainTex _BaseColorMap
|
|
#define _MainTex_ST _BaseColorMap_ST
|
|
#define _BumpMap _NormalMap
|
|
#define _ParallaxMap _HeightMap
|
|
#define _Parallax _HeightScale
|
|
#define _Glossiness _Smoothness
|