I'm working on a shader that is utilizing a custom diffuse but now I'm trying to figure out how to create a specular term to go with it. Right now I'm trying to put this together:
Bit of an update. I got the Phong Specular and the lambert diffuse together, however the specular highlight only moves with the camera and not with the movement of light. Is this a problem? I know that Unreals Phong reacts to both light position and camera position.
Ha, I should've just looked for that from the start! Oh well glad to know I basically figured it out. Thanks for the link though, it did explain a lot about which nodes still work with custom lighting (opactiy etc).
I'll definitely try the transmission thing too.
Could someone explain the need for the constant clamps? What do they accomplish?
"The ConstantClamp expression performs the same function as Clamp but uses properties for the minimum and maximum values in the node itself for simplicity and ease of use. This expression works well when you have min and max clamp values (say clamping an output from 0 to 1) that do not need to be variable over time."