From 4a5a01ab578d5dc989a7c766205c8ed6937fc9c0 Mon Sep 17 00:00:00 2001 From: Micah Dowty Date: Mon, 16 Aug 2010 16:46:29 +0000 Subject: [PATCH] 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. --- examples/bunnies/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/bunnies/main.c b/examples/bunnies/main.c index cbb5441..8228311 100644 --- a/examples/bunnies/main.c +++ b/examples/bunnies/main.c @@ -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,