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);
This part specifically is where i'm stuck:
- Code: Select all
float3 randomVec = (tex2D(_NoiseTex, IN.uv_MainTex * _noiseScale));
This is what I have at the moment:
Can anyone point me in the right direction?