If I understand you currently, you should go with Vector3:Dot()
:
if CameraLookVector:Dot(LightSourceLookVector) >= Threshold then
-- Increase flare transparency and size
end
For more information on Vector3:Dot()
, see this post
If I understand you currently, you should go with Vector3:Dot()
:
if CameraLookVector:Dot(LightSourceLookVector) >= Threshold then
-- Increase flare transparency and size
end
For more information on Vector3:Dot()
, see this post