Jump to content

Recommended Posts

Posted

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.

Posted

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?

Posted

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.

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...