Skip to content

Commit

Permalink
Merge pull request AlternativaPlatform#24 from ffelini/patch-1
Browse files Browse the repository at this point in the history
DirectionalLightShadow.removeCaster() added
  • Loading branch information
Andrey Kopysov committed Sep 20, 2012
2 parents 5ef25d0 + b0d92f1 commit a1d5b63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/alternativa/engine3d/shadows/DirectionalLightShadow.as
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,15 @@ package alternativa.engine3d.shadows {
}
}

/**
* Removes given object from shadow casters list.
* @param object Object which should be removed from shadow casters list.
*/
public function removeCaster(object:Object3D):void {
var index:int = _casters.indexOf(object);
if (index < 0) throw new Error("Caster not found");
_casters[index] = _casters.pop();
}
/**
* Clears the list of objects, which cast shadow.
*/
Expand Down

0 comments on commit a1d5b63

Please sign in to comment.