Class LightPunctualExtension
Extension methods for LightPunctual
Inherited Members
Namespace: GLTFast
Syntax
public static class LightPunctualExtension
Methods
ToLightPunctual(Light, LightPunctual, Single)
Initialize a LightPunctual from a UnityEngine.Light
Declaration
public static void ToLightPunctual(this Light lightSource, LightPunctual lightDestination, float lightIntensityFactor)
Parameters
Type | Name | Description |
---|---|---|
Light | lightSource | light to get data from |
LightPunctual | lightDestination | light to initialize |
Single | lightIntensityFactor | light intensity conversion factor |
ToUnityLight(LightPunctual, Light, Single)
Initialize a UnityEngine.Light from a LightsPunctual
Declaration
public static void ToUnityLight(this LightPunctual lightSource, Light lightDestination, float lightIntensityFactor)
Parameters
Type | Name | Description |
---|---|---|
LightPunctual | lightSource | light to get data from |
Light | lightDestination | light to initialize |
Single | lightIntensityFactor | light intensity conversion factor |