function constantreallist(t, val) {
    if (isnativeglsl(t))
        return (args, modifs, codebuilder) => `${webgltype(t)}(float(${val}))`;
    else
        return (args, modifs, codebuilder) => `${uselist(t)}(${
      genchilds(t).map(ch => constantreallist(ch.type, val)(args, modifs, codebuilder)).join(',')
    })`;
}
/** creates a reallist of type t that has everywhere value val */
creates a reallist of type t that has everywhere value val
creates a reallist of type t that has everywhere value val
function constantreallist(t, val) {
    if (isnativeglsl(t))
        return (args, modifs, codebuilder) => `${webgltype(t)}(float(${val}))`;
    else
        return (args, modifs, codebuilder) => `${uselist(t)}(${
      genchilds(t).map(ch => constantreallist(ch.type, val)(args, modifs, codebuilder)).join(',')
    })`;
}
function constantreallist ( t , val ) { if ( isnativeglsl ( t ) ) return ( args , modifs , codebuilder ) => ` ${ webgltype ( t ) } ${ val } ` ; else return ( args , modifs , codebuilder ) => ` ${ uselist ( t ) } ${ genchilds ( t ) . map ( ch => constantreallist ( ch . type , val ) ( args , modifs , codebuilder ) ) . join ( ',' ) } ` ; }
creates a reallist of type t that has everywhere value val
creates a reallist of type t that has everywhere value val