Jump to content

GI Light Shader


jkunz07

Recommended Posts

Hey, I'm trying to recreate the ambient occlusion functionality of the GI Light Shader. I've been looking over the code for it and created the attached network.

I'm getting the occlusion effect ok, but I'm not sure why I'm still getting highlights. I'm using a light template, below are images with the custom shader and GI Light Shader assigned to the light template.

If anyone could help me understand why this is happening I'd appreciate it, thanks!

post-6960-133425684672_thumb.jpg

post-6960-133425686183_thumb.jpg

post-6960-133425687131_thumb.jpg

Link to comment
Share on other sites

You have to add the vm_nonspecular parameter to your light or your shader and enable it to make it a diffuse only light. If you take a closer look at the GI Light code you can spot this parameter as well:

export int __nonspecular=1
#pragma hint __nonspecular      hidden

-dennis

Edited by dennis.weil
Link to comment
Share on other sites

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...