Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 24th, 2012  |  syntax: C++  |  size: 0.94 KB  |  views: 76  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. float4 masks1234 = tex2D(texture00Sampler, input.uv1 * maskScale);
  2. float3 masks567  = tex2D(texture01Sampler, input.uv1 * maskScale).rgb;
  3. float4 final  = tex2D(texture02Sampler, input.uv1 * uvScale0);
  4. float4 layer1 = tex2D(texture03Sampler, input.uv1 * uvScale1);
  5. float4 layer2 = tex2D(texture04Sampler, input.uv1 * uvScale2);
  6. float4 layer3 = tex2D(texture05Sampler, input.uv1 * uvScale3);
  7. float4 layer4 = tex2D(texture06Sampler, input.uv1 * uvScale4);
  8. float4 layer5 = tex2D(texture07Sampler, input.uv1 * uvScale5);
  9. float4 layer6 = tex2D(texture08Sampler, input.uv1 * uvScale6);
  10. float4 layer7 = tex2D(texture09Sampler, input.uv1 * uvScale7);
  11. final = lerp( final, layer1, masks1234.r );
  12. final = lerp( final, layer2, masks1234.g );
  13. final = lerp( final, layer3, masks1234.b );
  14. final = lerp( final, layer4, masks1234.a );
  15. final = lerp( final, layer5, masks567.r );
  16. final = lerp( final, layer6, masks567.g );
  17. final = lerp( final, layer7, masks567.b );
clone this paste RAW Paste Data