Navigate to the top level

Lighting_spotlight

Description
Tests the behavior of spotlight falloff and attenuation settings.
The spotlight is placed at {0, 0, -7} (the camera position) pointing directly into the screen, with a maximum range of 15.f. A plane is rendered at {0, 0, 0}, and a cylinder at ~ {1, 1, 0}.
For the "At" prefixed tests, the attenuation factor of the light is adjusted. This factor should decrease the light intensity relative to the distance between the vertex and the light.
For the "Fo" prefixed tests, the falloff factor of the light is adjusted. This factor modifies how the intensity falls off in the zone between the penumbra (the outermost illuminated region) and the umbra (the region within which the light's full intensity is applied). Note that all pixels are still modified by attenuation, which is set to a constant value.
For the "PT" prefixed tests, the phi (penumbra) and theta (umbra) angles are set to various values, including some that would be prevented by DirectX.
See
https://learn.microsoft.com/en-us/windows/uwp/graphics-concepts/attenuation-and-spotlight-factor
Suite class def

AtFixed_0.000000_0.000000_0.000000

Image with alpha
Test result for Lighting_spotlight::AtFixed_0.000000_0.000000_0.000000
Image as seen on display
No alpha test result for Lighting_spotlight::AtFixed_0.000000_0.000000_0.000000

AtFixed_0.050000_0.000000_0.250000

Image with alpha
Test result for Lighting_spotlight::AtFixed_0.050000_0.000000_0.250000
Image as seen on display
No alpha test result for Lighting_spotlight::AtFixed_0.050000_0.000000_0.250000

AtFixed_0.050000_0.050000_0.050000

Image with alpha
Test result for Lighting_spotlight::AtFixed_0.050000_0.050000_0.050000
Image as seen on display
No alpha test result for Lighting_spotlight::AtFixed_0.050000_0.050000_0.050000

AtFixed_0.050000_0.250000_0.000000

Image with alpha
Test result for Lighting_spotlight::AtFixed_0.050000_0.250000_0.000000
Image as seen on display
No alpha test result for Lighting_spotlight::AtFixed_0.050000_0.250000_0.000000

AtFixed_0.500000_0.000000_0.000000

Image with alpha
Test result for Lighting_spotlight::AtFixed_0.500000_0.000000_0.000000
Image as seen on display
No alpha test result for Lighting_spotlight::AtFixed_0.500000_0.000000_0.000000

AtFixed_1.000000_0.000000_0.000000

Image with alpha
Test result for Lighting_spotlight::AtFixed_1.000000_0.000000_0.000000
Image as seen on display
No alpha test result for Lighting_spotlight::AtFixed_1.000000_0.000000_0.000000

AtFixed_10.000000_0.000000_0.000000

Image with alpha
Test result for Lighting_spotlight::AtFixed_10.000000_0.000000_0.000000
Image as seen on display
No alpha test result for Lighting_spotlight::AtFixed_10.000000_0.000000_0.000000

AtFixed_2.000000_0.000000_0.000000

Image with alpha
Test result for Lighting_spotlight::AtFixed_2.000000_0.000000_0.000000
Image as seen on display
No alpha test result for Lighting_spotlight::AtFixed_2.000000_0.000000_0.000000

FoFixed_-0.000244_0.500122_0.499634

Image with alpha
Test result for Lighting_spotlight::FoFixed_-0.000244_0.500122_0.499634
Image as seen on display
No alpha test result for Lighting_spotlight::FoFixed_-0.000244_0.500122_0.499634

FoFixed_-0.170208_-0.855843_1.685635

Image with alpha
Test result for Lighting_spotlight::FoFixed_-0.170208_-0.855843_1.685635
Image as seen on display
No alpha test result for Lighting_spotlight::FoFixed_-0.170208_-0.855843_1.685635

FoFixed_-0.706496_-2.507095_2.800600

Image with alpha
Test result for Lighting_spotlight::FoFixed_-0.706496_-2.507095_2.800600
Image as seen on display
No alpha test result for Lighting_spotlight::FoFixed_-0.706496_-2.507095_2.800600

FoFixed_-0.932112_-3.097628_3.165516

Image with alpha
Test result for Lighting_spotlight::FoFixed_-0.932112_-3.097628_3.165516
Image as seen on display
No alpha test result for Lighting_spotlight::FoFixed_-0.932112_-3.097628_3.165516

FoFixed_-0.986137_-3.165117_3.178980

Image with alpha
Test result for Lighting_spotlight::FoFixed_-0.986137_-3.165117_3.178980
Image as seen on display
No alpha test result for Lighting_spotlight::FoFixed_-0.986137_-3.165117_3.178980

FoFixed_-0.993286_-2.953324_2.960038

Image with alpha
Test result for Lighting_spotlight::FoFixed_-0.993286_-2.953324_2.960038
Image as seen on display
No alpha test result for Lighting_spotlight::FoFixed_-0.993286_-2.953324_2.960038

FoFixed_-0.996561_-3.084043_3.087482

Image with alpha
Test result for Lighting_spotlight::FoFixed_-0.996561_-3.084043_3.087482
Image as seen on display
No alpha test result for Lighting_spotlight::FoFixed_-0.996561_-3.084043_3.087482

FoFixed_0.000000_-0.494592_1.494592

Image with alpha
Test result for Lighting_spotlight::FoFixed_0.000000_-0.494592_1.494592
Image as seen on display
No alpha test result for Lighting_spotlight::FoFixed_0.000000_-0.494592_1.494592

FoFixed_0.000000_0.000000_0.000000

Image with alpha
Test result for Lighting_spotlight::FoFixed_0.000000_0.000000_0.000000
Image as seen on display
No alpha test result for Lighting_spotlight::FoFixed_0.000000_0.000000_0.000000

FoFixed_0.000000_1.000000_0.000000

Image with alpha
Test result for Lighting_spotlight::FoFixed_0.000000_1.000000_0.000000
Image as seen on display
No alpha test result for Lighting_spotlight::FoFixed_0.000000_1.000000_0.000000

PTFixed_-10.000000_-10.000000

Image with alpha
Test result for Lighting_spotlight::PTFixed_-10.000000_-10.000000
Image as seen on display
No alpha test result for Lighting_spotlight::PTFixed_-10.000000_-10.000000

PTFixed_0.000000_0.000000

Image with alpha
Test result for Lighting_spotlight::PTFixed_0.000000_0.000000
Image as seen on display
No alpha test result for Lighting_spotlight::PTFixed_0.000000_0.000000

PTFixed_10.000000_10.000000

Image with alpha
Test result for Lighting_spotlight::PTFixed_10.000000_10.000000
Image as seen on display
No alpha test result for Lighting_spotlight::PTFixed_10.000000_10.000000

PTFixed_10.000000_25.000000

Image with alpha
Test result for Lighting_spotlight::PTFixed_10.000000_25.000000
Image as seen on display
No alpha test result for Lighting_spotlight::PTFixed_10.000000_25.000000

PTFixed_25.000000_0.000000

Image with alpha
Test result for Lighting_spotlight::PTFixed_25.000000_0.000000
Image as seen on display
No alpha test result for Lighting_spotlight::PTFixed_25.000000_0.000000

PTFixed_25.000000_5.000000

Image with alpha
Test result for Lighting_spotlight::PTFixed_25.000000_5.000000
Image as seen on display
No alpha test result for Lighting_spotlight::PTFixed_25.000000_5.000000