Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Combining textures in a custom shader

$
0
0
So, im working on the my first surface shader.
Im making a shader that thakes 6 textures (3 albedos and 3 normals), and combines the textures using 2 values.
Is used to make rust and scratches on weapons.
So i readed the documentation and started writing this (using only albedos for now):
Code (CSharp):
  1. Shader "WeaponRustandScratchBlend" {
  2.     Properties {
  3.         _RustAmount ("Rust Amount", range (0.0, 1.0)) = 0
  4.         _ScratchesAmount ("Scratches Amount", range (0.0, 1.0)) = 0
  5.         _MainTex...
Combining textures in a custom shader

Viewing all articles
Browse latest Browse all 1466670

Trending Articles