Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Surfwace Shader overwrite Lightingfunction

$
0
0
Hi there,

I'm digging through the standard shader source code and I'm totally overhelmed :). Can anybody tell me how I can adjust the standard lighting function when writing a PBS-Surface Shader? I want to write a simple adjustment of the Standard Shader of just flipping the light direction (I think it's "gi.light.dir") to get reflections and highlights on the other side of a (transparent) material (for a "scratchy" cockpit window which gets lighted from the outside).

I'm on beta13, Deferred...

Surfwace Shader overwrite Lightingfunction

Viewing all articles
Browse latest Browse all 1466670

Trending Articles