Shader newbie question: How to position a Mask

Hi there. First of all I am new to shader development.

Currently I am working on a project and being a complete shader newbie I have a question about it. The following picture shows what i want to achieve.

The grey/black area’s should be transparant. I am using the following shader for it.

Shader "MaskedTexture"
{
   
   Properties
   {
   	//_Color ("Color", Color) 	= (1,1,1,1)
      _MainTex	("Main", 2D) 	= "white" {}
      _Image	("Mask", 2D) 	= "white" {}
	  _Cutoff ("Alpha cutoff", Range (0,1)) = 0.1
   }
   
   SubShader
   {
   
      Tags {"Queue"="Transparent"}
      Lighting Off
      ZWrite Off
	  Blend SrcAlpha OneMinusSrcAlpha
	  AlphaTest GEqual [_Cutoff]
      
     Pass 
     { 
	SetTexture [_Image] 
	SetTexture [_MainTex] {combine texture, texture * previous} 
     }
  }
}

My question is, is it possible to select the position where the Mask is going to be placed?

Use texture offset, alter the UVs, or use Matrix command on them.

Also remember to set the texture to “Clamp” so that it doesn’t tile all over your mesh.

@Jessy… the tutorials are awesome… thanks…

@Jessy, Thanks the texture offset part helped :slight_smile: