Sign in to follow this  
h3ro

Using LUA to script shaders for my render

Recommended Posts

Hallo, I am working on a render project and would like to use LUA to script shaders for it. So far I have managed to read values from the lua scripts, but I am unsure about how to read arrays. Say I have the following function, how do I get the return value from it in the c++ part of my program? The return array will always have the size of 3 (final rgb output for the current pixel)
function f ()
t = { 1,1,2}
return t
end
Thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this