- Home /
Question by
ToruTheRedFox · Oct 15, 2019 at 06:11 PM ·
shadershadersmathhlsl
How is _WorldSpaceLightPos0 calculated for a directional light?
I want to make a custom lighting system, but I have no idea how to calculate the same values that are in _WorldSpaceLightPos0. Any help?
Comment
Your answer
Follow this Question
Related Questions
Simple Unlit HLSL Shader with Rim Lighting? 1 Answer
Set list in shader (uniform) 1 Answer
"Floor" function produces artifacts in shader 1 Answer
Mathf.Repeat in ShaderLab? 1 Answer
2D Water top surface profile 1 Answer