mirror of
https://github.com/MapMakersAndProgrammers/TankiOnline2.0DemoClient.git
synced 2025-10-26 01:49:11 -07:00
Initial commit
This commit is contained in:
46
src/package_85/name_596.as
Normal file
46
src/package_85/name_596.as
Normal file
@@ -0,0 +1,46 @@
|
||||
package package_85
|
||||
{
|
||||
import package_18.name_44;
|
||||
import package_18.name_84;
|
||||
import package_21.name_78;
|
||||
import package_23.name_208;
|
||||
import package_24.DirectionalLight;
|
||||
|
||||
public class name_596 implements name_84
|
||||
{
|
||||
private var object:name_78;
|
||||
|
||||
private var renderSystem:name_44;
|
||||
|
||||
private var consumer:class_31;
|
||||
|
||||
public function name_596(object:name_78, renderSystem:name_44, consumer:class_31)
|
||||
{
|
||||
super();
|
||||
this.object = object;
|
||||
this.renderSystem = renderSystem;
|
||||
this.consumer = consumer;
|
||||
}
|
||||
|
||||
public function name_111() : void
|
||||
{
|
||||
var worldSize:Number = NaN;
|
||||
var textureSize:int = 0;
|
||||
var pcfSize:int = 0;
|
||||
var directionalShadowRenderer:name_208 = null;
|
||||
var directionalLights:Vector.<DirectionalLight> = this.renderSystem.lights.directionalLigths.lights;
|
||||
if(directionalLights != null && directionalLights.length > 0)
|
||||
{
|
||||
worldSize = 1300;
|
||||
textureSize = 256;
|
||||
pcfSize = 4;
|
||||
directionalShadowRenderer = new name_208(this.renderSystem.method_42(),textureSize,worldSize,pcfSize);
|
||||
directionalShadowRenderer.var_235 = this.object;
|
||||
directionalShadowRenderer.method_371(directionalLights[0]);
|
||||
this.renderSystem.method_70(directionalShadowRenderer);
|
||||
this.consumer.method_496(directionalShadowRenderer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user