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

Custom Lighting Additional Lights Function -- Deferred Render Pipeline?

$
0
0
I'm trying to recreate parts of the metallic workflow URP lit shader in shader graph to give me more control over the lighting. I've put together parts of the pipeline from studying the existing shader code, and using examples like Cyanilux's custom lighting repository. Here's what I've got:

Code (CSharp):
  1. #ifndef SHADERGRAPH_PREVIEW
  2. Light GetAdditionalLightWithAO(
  3.     uint lightIndex,
  4.     float3 positionWS,
  5.     half4...
Custom Lighting Additional Lights Function -- Deferred Render Pipeline?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>