Here's the specific part that i'm trying to convert:
Code: Select all
float4 albedo = tex2D(_MainTex, IN.uv_MainTex) * _Color;
float DotAngle = abs(dot (IN.viewDir, IN.tangent_input));
float3 randomVec = (tex2D(_NoiseTex, IN.uv_MainTex * _noiseScale));
float randomVal = randomVec.x;
clip((1 - (_Angle / DotAngle)) + (randomVal));
clip(albedo.a - _Cutoff);
Code: Select all
float3 randomVec = (tex2D(_NoiseTex, IN.uv_MainTex * _noiseScale));

Can anyone point me in the right direction?