- Home /
Unity Surface Shader - Deferred lighting viewDir and lightDir
I would like to know if this is possible to have access or maybe calculate the viewDir and lightDir inside half4 Lighting_PrePass (SurfaceOutput s, half4 light);
Concerning viewDir, I would like to avoid adding it in the SurfaceOutput.
Is it possible to access viewDir and lightDir in deferred lighting ?
Thank you.
Comment
Your answer
Follow this Question
Related Questions
Surface Shader: Achieve pure black 2 Answers
exclude_path:deferred causes see through? 0 Answers
Order of functions in a shader? 1 Answer
How to define custom deferred ambient lighting? 0 Answers
Spherical Hamonics - ShadeSH9 and Surface Shader issue 0 Answers