This commit is contained in:
Tleety
2016-01-18 17:57:45 +01:00
parent 601ce85c05
commit 4b29d48f27
4 changed files with 11 additions and 22 deletions
+2 -2
View File
@@ -120,7 +120,7 @@ void main ()
//if pointlight
//Pos i view antagligen
if(light.Type == 0) {
if(light.Type == 1) {
if(SphereInsideFrustrum( vec3(V * light.Position), light.Radius, GroupFrustum)) {
//TODO: Fix transparent and opaque list, and depth test.
AppendLight( i );
@@ -131,7 +131,7 @@ void main ()
//if conelight
//if directional
if(light.Type == 1) {
if(light.Type == 2) {
AppendLight( i );
}