Jump to content
Sign in to follow this  
evgen

Area specular in shader. How?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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:

untitled-03.hipnc

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  

×