Commit 9411bc52 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

ddraw/tests: Test specular lighting with zero shininess in ddraw4.

parent ce316dfd
...@@ -4374,25 +4374,25 @@ static void test_specular_lighting(void) ...@@ -4374,25 +4374,25 @@ static void test_specular_lighting(void)
{320, 360, 0x002c2c2c}, {320, 360, 0x002c2c2c},
{480, 360, 0x006e6e6e}, {480, 360, 0x006e6e6e},
}, },
expected_point_side[] = expected_point_far[] =
{ {
{160, 120, 0x00000000}, {160, 120, 0x00000000},
{320, 120, 0x00000000}, {320, 120, 0x00000000},
{480, 120, 0x00000000}, {480, 120, 0x00000000},
{160, 240, 0x00000000}, {160, 240, 0x00000000},
{320, 240, 0x00000000}, {320, 240, 0x00ffffff},
{480, 240, 0x00000000}, {480, 240, 0x00000000},
{160, 360, 0x00000000}, {160, 360, 0x00000000},
{320, 360, 0x00000000}, {320, 360, 0x00000000},
{480, 360, 0x00000000}, {480, 360, 0x00000000},
}, },
expected_point_far[] = expected_zero[] =
{ {
{160, 120, 0x00000000}, {160, 120, 0x00000000},
{320, 120, 0x00000000}, {320, 120, 0x00000000},
{480, 120, 0x00000000}, {480, 120, 0x00000000},
{160, 240, 0x00000000}, {160, 240, 0x00000000},
{320, 240, 0x00ffffff}, {320, 240, 0x00000000},
{480, 240, 0x00000000}, {480, 240, 0x00000000},
{160, 360, 0x00000000}, {160, 360, 0x00000000},
{320, 360, 0x00000000}, {320, 360, 0x00000000},
...@@ -4415,8 +4415,14 @@ static void test_specular_lighting(void) ...@@ -4415,8 +4415,14 @@ static void test_specular_lighting(void)
{&point, TRUE, 30.0f, expected_point, ARRAY_SIZE(expected_point)}, {&point, TRUE, 30.0f, expected_point, ARRAY_SIZE(expected_point)},
{&spot, TRUE, 30.0f, expected_spot, ARRAY_SIZE(expected_spot)}, {&spot, TRUE, 30.0f, expected_spot, ARRAY_SIZE(expected_spot)},
{&parallelpoint, TRUE, 30.0f, expected_parallelpoint, ARRAY_SIZE(expected_parallelpoint)}, {&parallelpoint, TRUE, 30.0f, expected_parallelpoint, ARRAY_SIZE(expected_parallelpoint)},
{&point_side, TRUE, 0.0f, expected_point_side, ARRAY_SIZE(expected_point_side)}, {&point_side, TRUE, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
{&point_far, TRUE, 1.0f, expected_point_far, ARRAY_SIZE(expected_point_far)}, {&point_far, TRUE, 1.0f, expected_point_far, ARRAY_SIZE(expected_point_far)},
{&directional, FALSE, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
{&directional, TRUE, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
{&point, TRUE, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
{&spot, TRUE, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
{&parallelpoint, TRUE, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
{&point_far, TRUE, 0.0f, expected_zero, ARRAY_SIZE(expected_zero)},
}; };
IDirect3D3 *d3d; IDirect3D3 *d3d;
IDirect3DDevice3 *device; IDirect3DDevice3 *device;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment