o1.pos = UnityObjectToClipPos(input[0].pos + mul(transformationMatrix, float3(width, 0, 0))); ... o2.pos = UnityObjectToClipPos(input[0].pos + mul(transformationMatrix, float3(-width, 0, 0))); ... o3.pos = UnityObjectToClipPos(input[0].pos+ mul(transformationMatrix, float3...
请问自己做的模型怎么..请问自己做的模型怎么转换为terrain,或者我自己做的小区.fbx倒入unity后怎么用草地刷子?
float4 localWindVector=normalize(mul(unity_WorldToObject,_WindVector)); localPos+=sin(time+wind*10)*cos(time*2/3+1+wind*10)*localWindVector.xyz* clamp(v.uv.y-0.5,0,1); o.vertex = UnityObjectToClipPos(float4(localPos,1)); o.uv = TRANSFORM_TEX(v.uv, _MainTex); return o; } ...