| float4 UnityObjectToClipPos(float3 pos) | float4 TransformObjectToHClip(float3 positionOS) |
| float3 UnityObjectToViewPos(float3 pos) | TransformWorldToView(TransformObjectToWorld(positionOS)) |
| float3 WorldSpaceViewDir(float4 v) | float3 GetWorldSpaceViewDir(float3 positionWS) |
| float3 ObjSpaceViewDir(float4 v) | 移除了,可以使用TransformWorldToObject(GetCameraPositionWS()) - objectSpacePosition |
| float2 ParallaxOffset(half h,half height,half3 viewDir) | 移除了。可以从UnityCG.cginc复制过来 |
| fixed Luminance(fixed3 c) | real Luminance(real3 linearRgb) |
| fixed3 DecodeLightmap(fixed4 color) | real3 DecodeLightmap(real4 encodedIlluminance, real4 decodeInstructions) |
| float4 EncodeFloatRGBA(float v) | 移除了。可以从UnityCG.cginc复制过来 |
| float DecodeFloatRGBA(float4 enc) | 移除了。可以从UnityCG.cginc复制过来 |
| float2 EncodeFloatRG(float v) | 移除了。可以从UnityCG.cginc复制过来 |
| float DecodeFloatRG(float2 enc) | 移除了。可以从UnityCG.cginc复制过来 |
| float2 EncodeViewNormalStereo(float3 n) | 移除了。可以从UnityCG.cginc复制过来 |
| float3 DecodeViewNormalStereo(float4 enc4) | 移除了。可以从UnityCG.cginc复制过来 |
| float3 WorldSpaceLightDir(float4 v) | _MainLightPosition.xyz - TransformObjectToWorld(objectSpacePosition) |
| float3 ObjSpaceLightDir(float4 v) | TransformWorldToObject(_MainLightPosition.xyz)-objectSpacePosition |
| float3 Shade4PointLights(…) | 可以使用half3 VertexLighting(float3 positionWS, half3 normalWS) |
| float4 ComputeScreenPos(float4 clipPos) | float4 ComputeScreenPos(float4 positionCS) |
| float4 ComputeGrabScreenPos(float4 clipPos) | 移除了 |
| float3 ShadeVertexLights (float4 vertex, float3 normal) | 移除了,可以尝试使用UNITY_LIGHTMODEL_AMBIENT.xyz + VertexLighting(…) |