You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if we could add #define directives to shader programs.
E.g.: prog << "USE_SHADOW"_def => #define USE_SHADOW
or prog << "SHADOW_FUN"_def << 2 => #define SHADOW_FUN 2
or prog << "SAMPLER_TYPE"_def << "sampler2d" => #define SAMPLER_TYPE sampler2d
Kind of like subroutines but in compile time.
The text was updated successfully, but these errors were encountered:
It would be nice if we could add #define directives to shader programs.
E.g.:
prog << "USE_SHADOW"_def
=>#define USE_SHADOW
or
prog << "SHADOW_FUN"_def << 2
=>#define SHADOW_FUN 2
or
prog << "SAMPLER_TYPE"_def << "sampler2d"
=>#define SAMPLER_TYPE sampler2d
Kind of like subroutines but in compile time.
The text was updated successfully, but these errors were encountered: