Click or drag to resize
AB4D logo

ModelUtilsHasAnyLight(Viewport3D, Boolean) Method

Returns true if the Viewport3D has any light defined. By default the AmbientLight is excluded.

Namespace: Ab3d.Utilities
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public static bool HasAnyLight(
	Viewport3D viewport3D,
	bool excludeAmbientLight = true
)

Parameters

viewport3D  Viewport3D
Viewport3D
excludeAmbientLight  Boolean  (Optional)
if true then AmbientLight is excluded (method retuns false if only AmbientLight is defined).

Return Value

Boolean
true if the Viewport3D has any light defined (except AmbientLight)
See Also