UnityEngine.Rendering.SphericalHarmonicsL2.AddDirectionalLightInternal C# (CSharp) Method

AddDirectionalLightInternal() private static method

private static AddDirectionalLightInternal ( Vector3 direction, Color color, SphericalHarmonicsL2 &sh ) : void
direction Vector3
color Color
sh SphericalHarmonicsL2
return void
        private static void AddDirectionalLightInternal(Vector3 direction, Color color, ref SphericalHarmonicsL2 sh)
        {
            INTERNAL_CALL_AddDirectionalLightInternal(ref direction, ref color, ref sh);
        }

Usage Example

コード例 #1
0
        public void AddDirectionalLight(Vector3 direction, Color color, float intensity)
        {
            Color color2 = color * (2f * intensity);

            SphericalHarmonicsL2.AddDirectionalLightInternal(direction, color2, ref this);
        }