Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######################################################################################################################
- function_lib {
- function translateBoolToVec( type )
- if type == "bvec2 then
- return "vec2"
- elseif type == "bvec3" then
- return "vec3"
- elseif type == "bvec4" then
- return "vec4"
- else
- return ""
- end
- end
- }
- ######################################################################################################################
- new BoolToFloat {
- group Boolean
- out {
- out_types func { lbz . ret_type( translateBoolToVec( lbz . get_type( "Boolean" ) ) }
- lua {
- local A = lbz . input( "Boolean" )
- lbz . ret( "float( " .. B .. " )" )
- }
- }
- in {
- name Boolean
- in_types {bool}
- }
- }
- ######################################################################################################################
Add Comment
Please, Sign In to add comment