//!PARAM SOME_PARAM
//!TYPE float
//!MINIMUM -10
//!MAXIMUM 10
0.5
// any comment here causes an error
//!HOOK MAIN
//!BIND HOOKED
//!DESC some trivial shader
vec4 hook()
{
// ...
}
//!PARAM SOME_PARAM
//!TYPE float
//!MINIMUM -10
//!MAXIMUM 10
0.5
////!HOOK OUTPUT // <= this gets parsed as //!
//!HOOK MAIN
//!BIND HOOKED
//!DESC some trivial shader
vec4 hook()
{
// ...
}
are you aware of how shit glsl parsing is anon?