Shader blocks separation commands #if #ifdef #if defined #ifndef

Hi,

What is there difference between these commands in unity shaders:
#if FEATURE
#ifdef FEATURE
#if defined(FEATURE)
and
#ifndef FEATURE

?
I hope first 3 are equal and the last mean if FEATURE is not defined. but im not sure.

1 Like
5 Likes