VEX specular sheen

   3578   3   0
User Avatar
Member
1533 posts
Joined: March 2020
Offline
hi

i'm working on a vop surface shader that uses light masks, i was wondering if there is a way to use light masks with vex sheen?
with diffuse you use;
diffuse(nml, “lightmask”,“light01”)
i've tried:
sheen(nml, nl, eta, rough, “lightmask”,“light01”)

thx
jason
HOD fx and lighting @ blackginger
https://vimeo.com/jasonslabber [vimeo.com]
User Avatar
Member
320 posts
Joined: Aug. 2007
Offline
Hi Jason,

I am pretty sure there is no built in sheen() function, so you will need to add the lightmask parameter to the vop_sheen() function's illuminance loop. ( http://www.sidefx.com/docs/houdini10.0/vex/functions/illuminance [sidefx.com] ) You can find this function in $HFS/houdini/vex/include/voplib.h

I've attached a HIP with a VEX Builder HDA for you. It only took a second since I just copied everything from Specular Sheen and added 1 parameter.

-Alan

Attachments:
sheen_ltmask.zip (56.2 KB)

www.alan-warren.com
User Avatar
Member
2624 posts
Joined: Aug. 2006
Offline
Great file Alan ….

r
Gone fishing
User Avatar
Member
1533 posts
Joined: March 2020
Offline
hey alan

thx for this, never thought about looking in $HFS/houdini/vex/include/voplib.h
great stuff

thx again
jason
HOD fx and lighting @ blackginger
https://vimeo.com/jasonslabber [vimeo.com]
  • Quick Links