mirror of
https://github.com/MapMakersAndProgrammers/Alternativa3D.git
synced 2025-10-26 09:59:10 -07:00
Update src/alternativa/engine3d/shadows/DirectionalLightShadow.as
removeCaster methods added
This commit is contained in:
@@ -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.
|
* Clears the list of objects, which cast shadow.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user