Shader suddenly stopped working and throws error
Shader error in 'Custom/MaskShader': incorrect number of arguments to numeric-type constructor at line 36 (on glcore)
Shader "Custom/MaskShader" {
Properties {
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Mask ("Culling Mask", 2D) = "white" {}
_Cutoff ("Alpha cutoff", Range (0,1)) = 0.1
}
SubShader {
Tags {"Queue"="Transparent"}
Lighting Off
ZTest Always
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
AlphaTest GEqual [_Cutoff]
Pass
{
SetTexture [_Mask] {combine texture}
SetTexture [_MainTex] {combine texture, previous}
}
}
}
It stopped working after doing some edits. Tried to recreate it from scratch (without the edits, i.e. the working version) by deleting shader and material, reimporting all assets. Refreshing, renaming, etc. Now I still get this error not matter what I do.
Comment