Jump to content


Area specular in shader. How?


  • Please log in to reply
1 reply to this topic

#1 evgen

evgen

    Peon

  • Members
  • Pip
  • 57 posts
  • Joined: 26-January 08
  • Name:Evgeny B

Posted 07 May 2012 - 03:39 PM

Hello, could you help me, i am trying to get specular from area light source in vex, how to do that? Seems to me that i need to use sample_light for this , but how to use this function? Thanks
With respect,
Evgeniy Bazurov
Evgen3d.com

#2 nord3d

nord3d

    Peon

  • Members
  • Pip
  • 50 posts
  • Joined: 19-July 10
  • Name:ALeXeY G.

Posted 08 May 2012 - 02:05 PM

Hi, If I understood you correctly, you want a sharp, mirror-like specular? (Because, otherwise, you'd use some of Phnog - Blinn - approximations)

If so, look at my example with intersect_lights VEX function:
Attached File  untitled-03.hipnc   141.99K   37 downloads




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users