Shader Error . . . undeclared identifier - Unity Discussions You need to declare any material property within the shader code itself If you’re using the SAMPLE_TEXTURE2D () macro to sample the texture, then this is a shader for the post processing stack or URP, and presumably _MaskMap is also using the same SAMPLE_TEXTURE2D () macro