nick.ace Posted July 26, 2014 Share Posted July 26, 2014 Does anyone know exactly what the Script:Render() parameters (diffuse, buffer, etc.) are? I'm trying to write some postprocess shaders, but I don't really understand what each of these parameters are and what type each is. Quote Link to comment Share on other sites More sharing options...
shadmar Posted July 27, 2014 Share Posted July 27, 2014 diffuse,depth, and normal are textures you can sample in your shader. 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
nick.ace Posted July 27, 2014 Author Share Posted July 27, 2014 Thanks shadmar! Is buffer that just a Lua table? If so, what does it contain when it is passed in? Also, am I correct in assuming that the camera argument is just a camera object, or is it something else? Quote Link to comment Share on other sites More sharing options...
shadmar Posted July 27, 2014 Share Posted July 27, 2014 buffer is the default buffer (which only allows disable/enable, but since deoth,normals and diffuse are already provided it's ok. camera is the camera which will render the effect, can be viewport camera or FPSplayer runtime or the camera:AddPostEffect() you have done in code... so yes it's the camera rendering the effect. Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
nick.ace Posted July 27, 2014 Author Share Posted July 27, 2014 Ok thanks! That makes more sense now. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.