Patch from Jose Fonseca: Specify a nonzero light range in the bunnies example
Otherwise the bunnies are all black with the D3D backend and the software renderer backend. GL backend apparently interprets a zero light range differently, and draws them white even without this change.
This commit is contained in:
parent
3a3ad0e7dc
commit
4a5a01ab57
|
@ -44,6 +44,7 @@ setupFrame(void)
|
|||
.diffuse = { 10.0f, 10.0f, 10.0f, 1.0f },
|
||||
.ambient = { 0.05f, 0.05f, 0.1f, 1.0f },
|
||||
.position = { -5.0f, 5.0f, 0.0f, 1.0f },
|
||||
.range = 1000.0f,
|
||||
.attenuation0 = 1.0f,
|
||||
.attenuation1 = 0.0f,
|
||||
.attenuation2 = 0.0f,
|
||||
|
|
Loading…
Reference in a new issue