FiE-Game/assets/streaming/PackFx/Particles/TwilightSparkle/TwilightBaseShotConcentration.pkfx
2018-11-20 20:05:15 +02:00

619 lines
15 KiB
Text

Version = 1.9.4.30080;
CParticleEffect $LOCAL$/Resource
{
OnSpawn = "$LOCAL$/Spawner";
LayerGroups =
{
"$LOCAL$/branch",
};
CustomAttributes = "$LOCAL$/_GlobalAttributes";
Autostart = true;
}
CActionFactoryWithChilds $LOCAL$/Spawner
{
EditorInfosPosition = int2(329, 64);
ChildList =
{
"$LOCAL$/lightning",
};
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_B30B2123
{
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_9AEE5ABD
{
FieldName = "Color";
FieldType = float4;
}
CParticleEvolver_Script $LOCAL$/CParticleEvolver_Script_168DE691
{
CustomName = "Script";
Expression = "$LOCAL$/CCompilerSyntaxNodeExpression_216E6F10";
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_216E6F10
{
Expression = "function void Eval()
{
Color=CC * ColorCoeff * pow(GlowSampler.sample(LifeRatio), 4);
}
";
}
CParticleAttributeList $LOCAL$/_GlobalAttributes
{
AttributeList =
{
"$LOCAL$/CParticleAttributeDeclaration_FE3EB050",
"$LOCAL$/CParticleAttributeDeclaration_02243087",
"$LOCAL$/CParticleAttributeDeclaration_1DF47118",
};
}
CActionFactoryParticleSpawnerBase $LOCAL$/lightning
{
Descriptor = "$LOCAL$/CParticleDescriptor_7C46C5E9";
Infinite = true;
DurationInSeconds = 5.0000000e-001;
SpawnCountMode = TotalParticleCount;
SpawnCount = 5.0000000e+000;
SpawnCountRelativeRandomDeviation = 1.3000000e+000;
}
CParticleDescriptor $LOCAL$/CParticleDescriptor_7C46C5E9
{
CustomFields =
{
"$LOCAL$/CParticleFieldDeclaration_AA0A7EFA",
"$LOCAL$/CParticleFieldDeclaration_2832E92E",
"$LOCAL$/CParticleFieldDeclaration_668C5BD9",
"$LOCAL$/CParticleFieldDeclaration_7EA25C67",
};
Samplers =
{
"$LOCAL$/CParticleSamplerShape_3F5A22F7",
};
SpawnEvaluator = "$LOCAL$/CCompilerSyntaxNodeExpression_A99F3108";
States =
{
"$LOCAL$/CParticleState_4C8B87C2",
};
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_A99F3108
{
Expression = "function void Eval()
{
Life = 0.2;
Velocity = Scale*float3(rand(-100,100),rand(-100,100),rand(-100,100));
SizeCoeff = Scale;
FluxScale = pow(Flux,0.5)*2*Scale;
NextBranchTime = SizeCoeff * (0.5 + 0.25 * pow(rand(0, 1), 2));
Position = DropSampler.samplePosition();
}
";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_668C5BD9
{
FieldName = "FluxScale";
}
CParticleState $LOCAL$/CParticleState_4C8B87C2
{
StateName = "State_0";
MicroUpdatesMinFPS = 0.0000000e+000;
MaxMicroUpdatesPerFrame = 0;
Evolvers =
{
"$LOCAL$/CParticleEvolver_Localspace_081972C0",
"$LOCAL$/death",
"$LOCAL$/base",
"$LOCAL$/glow",
};
}
CParticleEvolver_Physics $LOCAL$/CParticleEvolver_Physics_C1D98F7D
{
CustomName = "Physics";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_8FACC28C
{
FieldName = "Timeb";
}
CParticleAttributeDeclaration $LOCAL$/CParticleAttributeDeclaration_FE3EB050
{
AttributeName = "CustomColorRGBA";
AttributeType = float4;
DefaultValueF4 = float4(4.0000000e+000, 2.7586201e-001, 2.0000000e+000, 4.0000000e+000);
MaxValueF4 = float4(2.0000000e+000, 2.0000000e+000, 2.0000000e+000, 2.0000000e+000);
}
CParticleDescriptor $LOCAL$/CParticleDescriptor_104D4D29
{
EditorInfosIsBlockMinimized = 0;
Renderer = "$LOCAL$/CParticleRenderer_Ribbon_E5E0F683";
CustomFields =
{
"$LOCAL$/CParticleFieldDeclaration_9AEE5ABD",
"$LOCAL$/CParticleFieldDeclaration_BB297115",
"$LOCAL$/CParticleFieldDeclaration_42AA1C4F",
"$LOCAL$/CParticleFieldDeclaration_BD2FCDD3",
};
Samplers =
{
"$LOCAL$/CParticleSamplerCurve_37052329",
};
SpawnEvaluator = "$LOCAL$/CCompilerSyntaxNodeExpression_3F389B48";
States =
{
"$LOCAL$/CParticleState_6B8B6DDE",
};
}
CParticleEventDeclaration $LOCAL$/CParticleEventDeclaration_7A8041A7
{
EventName = "OnDeath";
EventAction = "$LOCAL$/branch";
}
CParticleState $LOCAL$/CParticleState_6B8B6DDE
{
StateName = "State_0";
Evolvers =
{
"$LOCAL$/LocalSpace_1",
"$LOCAL$/CParticleEvolver_Physics_B91A4402",
"$LOCAL$/CParticleEvolver_Script_168DE691",
};
}
CParticleEvolver_Script $LOCAL$/CParticleEvolver_Script_BC1951CA
{
CustomName = "Script";
Expression = "$LOCAL$/CCompilerSyntaxNodeExpression_7AF25165";
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_7AF25165
{
Expression = "function void Eval()
{
Timeb += dt;
int shouldSpawnBranch = Timeb > 0.01;
float n = 60 * SizeCoeff;
Velocity = select(Velocity,float3(SizeCoeff*rand(-1,1)*100,rand(-n,n),SizeCoeff*rand(-1,1)*100),shouldSpawnBranch);
Timeb = select(Timeb,0,shouldSpawnBranch);
NextBranchTime = select(NextBranchTime, SizeCoeff * (0.05 + 0.25 * pow(rand(0, 1), 2)), shouldSpawnBranch);
}
";
}
CParticleEvolver_Physics $LOCAL$/CParticleEvolver_Physics_E9BE2D1D
{
CustomName = "Physics";
}
CParticleEvolver_Physics $LOCAL$/CParticleEvolver_Physics_B91A4402
{
CustomName = "Physics";
}
CParticleEvolver_Physics $LOCAL$/CParticleEvolver_Physics_F1A21305
{
CustomName = "Physics";
}
CParticleRenderer_Ribbon $LOCAL$/CParticleRenderer_Ribbon_E5E0F683
{
CustomName = "Ribbon";
BillboardingMaterial = Additive_NoAlpha;
Diffuse = "Textures/Fx/Lightning_05.dds";
AtlasDefinition = "Textures/Fx/AtlasX4.pkat";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_AA0A7EFA
{
FieldName = "Timeb";
}
CParticleEvolver_Spawner $LOCAL$/base
{
EditorInfosIsBlockMinimized = 0;
CustomName = "Spawner";
SpawnInterval = 5.0000000e-001;
FirstSpawnDelay = 0.0000000e+000;
CustomSpawnIntervalScaleField = "FluxScale";
Descriptor = "$LOCAL$/CParticleDescriptor_104D4D29";
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_3F389B48
{
Expression = "function void Eval()
{
Life = 0.2;
Size = 0.4 * Scale;
ColorCoeff = 100 * pow(1 - spawner.LifeRatio, 2);
TextureID = rand(0,16);
CC = CustomColorRGBA * 10;
}
";
}
CParticleEvolver_Spawner $LOCAL$/death
{
EditorInfosIsBlockMinimized = 0;
CustomName = "Spawner";
SpawnInterval = 3.0000000e+000;
FirstSpawnDelay = 0.0000000e+000;
CustomSpawnIntervalScaleField = "SizeCoeff";
Descriptor = "$LOCAL$/CParticleDescriptor_CD6A0035";
}
CParticleState $LOCAL$/CParticleState_91BC2CDA
{
StateName = "State_0";
Evolvers =
{
"$LOCAL$/CParticleEvolver_Physics_D33971BE",
};
}
CParticleDescriptor $LOCAL$/CParticleDescriptor_CD6A0035
{
CustomFields =
{
"$LOCAL$/CParticleFieldDeclaration_59D07FA1",
};
CustomEvents =
{
"$LOCAL$/CParticleEventDeclaration_7A8041A7",
};
SpawnEvaluator = "$LOCAL$/CCompilerSyntaxNodeExpression_C095B224";
States =
{
"$LOCAL$/CParticleState_91BC2CDA",
};
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_C095B224
{
Expression = "function void Eval()
{
Life = 0.01;
Color = CustomColorRGBA;
}
";
}
CParticleEvolver_Physics $LOCAL$/CParticleEvolver_Physics_D33971BE
{
CustomName = "Physics";
}
CActionFactoryParticleSpawnerBase $LOCAL$/branch
{
EditorInfosIsBlockMinimized = 0;
Descriptor = "$LOCAL$/CParticleDescriptor_1DEAC189";
}
CParticleDescriptor $LOCAL$/CParticleDescriptor_1DEAC189
{
CustomFields =
{
"$LOCAL$/CParticleFieldDeclaration_8FACC28C",
"$LOCAL$/CParticleFieldDeclaration_C9081B39",
"$LOCAL$/CParticleFieldDeclaration_28722F38",
"$LOCAL$/CParticleFieldDeclaration_E4021DE6",
};
SpawnEvaluator = "$LOCAL$/CCompilerSyntaxNodeExpression_4669BE28";
States =
{
"$LOCAL$/CParticleState_247F7DE2",
};
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_4669BE28
{
Expression = "function void Eval()
{
Life = rand(0.025,0.05);
Velocity=float3(0,50,0)*Scale;
SizeCoeff=Scale;
FluxScale=pow(Flux,0.5)*1*Scale;
}
";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_28722F38
{
FieldName = "FluxScale";
}
CParticleState $LOCAL$/CParticleState_247F7DE2
{
StateName = "State_0";
MicroUpdatesMinFPS = 0.0000000e+000;
MaxMicroUpdatesPerFrame = 0;
Evolvers =
{
"$LOCAL$/CParticleEvolver_Localspace_9AAE6F84",
"$LOCAL$/ert",
};
}
CParticleEvolver_Script $LOCAL$/CParticleEvolver_Script_4E3ECB6C
{
CustomName = "Script";
Expression = "$LOCAL$/CCompilerSyntaxNodeExpression_25B6EC7F";
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_25B6EC7F
{
Expression = "function void Eval()
{
Timeb += dt*SizeCoeff;
int shouldChangeDirection = Timeb>0.01*SizeCoeff;
float n = 60*SizeCoeff;
Velocity = select(Velocity, float3(rand(-n,n),50*SizeCoeff,rand(-n,n)), shouldChangeDirection);
Timeb = select(Timeb,0,shouldChangeDirection); // reset the \'should.pkangeDirection\' condition
}
";
}
CParticleEvolver_Spawner $LOCAL$/ert
{
CustomName = "Spawner";
SpawnInterval = 5.0000000e-001;
CustomSpawnIntervalScaleField = "FluxScale";
Descriptor = "$LOCAL$/CParticleDescriptor_47893DF0";
}
CParticleState $LOCAL$/CParticleState_65AD76F1
{
StateName = "State_0";
Evolvers =
{
"$LOCAL$/CParticleEvolver_Physics_F1A21305",
"$LOCAL$/CParticleEvolver_Script_403022B8",
};
}
CParticleDescriptor $LOCAL$/CParticleDescriptor_47893DF0
{
Renderer = "$LOCAL$/CParticleRenderer_Ribbon_23F2DF84";
CustomFields =
{
"$LOCAL$/CParticleFieldDeclaration_0B9A51ED",
"$LOCAL$/CParticleFieldDeclaration_366F0A1E",
"$LOCAL$/CParticleFieldDeclaration_BC9A45D6",
"$LOCAL$/CParticleFieldDeclaration_C223EA14",
};
Samplers =
{
"$LOCAL$/CParticleSamplerCurve_09C487E3",
};
SpawnEvaluator = "$LOCAL$/CCompilerSyntaxNodeExpression_57CEA4F3";
States =
{
"$LOCAL$/CParticleState_65AD76F1",
};
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_57CEA4F3
{
Expression = "function void Eval()
{
Life = 0.1;
float iSpawnerLR = 1 - spawner.LifeRatio;
Size = 0.4*Scale * pow(iSpawnerLR, 0.5);
ColorCoeff = pow(Flux,4)*100*pow(iSpawnerLR, 2);
TextureID = rand(0,16);
Position = float3(0,-0.5,0)*Scale;
CC = CustomColorRGBA * 5;
}
";
}
CParticleRenderer_Ribbon $LOCAL$/CParticleRenderer_Ribbon_23F2DF84
{
CustomName = "Ribbon";
BillboardingMaterial = Additive_NoAlpha;
Diffuse = "Textures/Fx/Lightning_05.dds";
AtlasDefinition = "Textures/Fx/AtlasX4.pkat";
}
CParticleEvolver_Script $LOCAL$/CParticleEvolver_Script_403022B8
{
CustomName = "Script";
Expression = "$LOCAL$/CCompilerSyntaxNodeExpression_70F7169B";
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_70F7169B
{
Expression = "function void Eval()
{
Color = CC * ColorCoeff * pow(GlowSampler.sample(LifeRatio), 4);
}
";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_C223EA14
{
FieldName = "CC";
FieldType = float4;
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_0B9A51ED
{
FieldName = "Color";
FieldType = float4;
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_C9081B39
{
FieldName = "SizeCoeff";
}
CParticleAttributeDeclaration $LOCAL$/CParticleAttributeDeclaration_02243087
{
AttributeName = "Scale";
DefaultValueF4 = float4(1.0000000e-001, 0.0000000e+000, 0.0000000e+000, 0.0000000e+000);
MaxValueF4 = float4(1.0000000e+002, 0.0000000e+000, 0.0000000e+000, 0.0000000e+000);
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_2832E92E
{
FieldName = "SizeCoeff";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_366F0A1E
{
FieldName = "TextureID";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_BB297115
{
FieldName = "TextureID";
}
CParticleEvolver_Physics $LOCAL$/CParticleEvolver_Physics_90A7E102
{
CustomName = "Physics";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_88F983BD
{
FieldName = "Color";
FieldType = float4;
}
CParticleRenderer_Billboard $LOCAL$/CParticleRenderer_Billboard_91A60DEB
{
CustomName = "Billboard";
BillboardingMaterial = Additive_NoAlpha;
Diffuse = "Textures/Fx/Glow_12.dds";
}
CCompilerSyntaxNodeExpression $LOCAL$/CCompilerSyntaxNodeExpression_548E9048
{
Expression = "function void Eval()
{
Life = 0.1;
Size = 2 * Scale;
Color = CustomColorRGBA * 0.04 * pow(1 - spawner.LifeRatio, 2);
}
";
}
CParticleDescriptor $LOCAL$/CParticleDescriptor_E8BCA629
{
Renderer = "$LOCAL$/CParticleRenderer_Billboard_91A60DEB";
CustomFields =
{
"$LOCAL$/CParticleFieldDeclaration_88F983BD",
};
SpawnEvaluator = "$LOCAL$/CCompilerSyntaxNodeExpression_548E9048";
States =
{
"$LOCAL$/CParticleState_D38CFADE",
};
}
CParticleEvolver_Spawner $LOCAL$/glow
{
EditorInfosIsBlockMinimized = 0;
CustomName = "Spawner";
SpawnInterval = 1.0000000e+000;
FirstSpawnDelay = 0.0000000e+000;
CustomSpawnIntervalScaleField = "SizeCoeff";
Descriptor = "$LOCAL$/CParticleDescriptor_E8BCA629";
}
CParticleState $LOCAL$/CParticleState_D38CFADE
{
StateName = "State_0";
Evolvers =
{
"$LOCAL$/LocalSpace_2",
"$LOCAL$/CParticleEvolver_Physics_90A7E102",
};
}
CParticleAttributeDeclaration $LOCAL$/CParticleAttributeDeclaration_1DF47118
{
AttributeName = "Flux";
DefaultValueF4 = float4(1.0000000e+000, 0.0000000e+000, 0.0000000e+000, 0.0000000e+000);
MaxValueF4 = float4(1.0000000e+000, 0.0000000e+000, 0.0000000e+000, 0.0000000e+000);
}
CParticleEvolver_Localspace $LOCAL$/CParticleEvolver_Localspace_081972C0
{
EditorInfosIsBlockMinimized = 0;
CustomName = "Localspace";
ChildList =
{
"$LOCAL$/CParticleEvolver_Physics_C1D98F7D",
"$LOCAL$/CParticleEvolver_Script_BC1951CA",
};
}
CParticleEvolver_Localspace $LOCAL$/CParticleEvolver_Localspace_9AAE6F84
{
CustomName = "Localspace";
ChildList =
{
"$LOCAL$/CParticleEvolver_Physics_E9BE2D1D",
"$LOCAL$/CParticleEvolver_Script_4E3ECB6C",
};
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_42AA1C4F
{
FieldName = "ColorCoeff";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_BC9A45D6
{
FieldName = "ColorCoeff";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_BD2FCDD3
{
FieldName = "CC";
FieldType = float4;
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_7EA25C67
{
FieldName = "NextBranchTime";
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_E4021DE6
{
FieldName = "ParentColor";
FieldType = float4;
}
CParticleFieldDeclaration $LOCAL$/CParticleFieldDeclaration_59D07FA1
{
FieldName = "Color";
FieldType = float4;
}
CParticleSamplerShape $LOCAL$/CParticleSamplerShape_3F5A22F7
{
SamplerName = "DropSampler";
Shape = "$LOCAL$/CShapeDescriptor_EE347186";
}
CShapeDescriptor $LOCAL$/CShapeDescriptor_EE347186
{
ShapeType = CYLINDER;
Radius = 9.9999998e-003;
}
CParticleSamplerCurve $LOCAL$/CParticleSamplerCurve_37052329
{
SamplerName = "GlowSampler";
Times =
{
0.0000000e+000,
7.5512230e-002,
1.6900167e-001,
1.0000000e+000,
};
FloatValues =
{
0.0000000e+000,
1.4312178e+000,
3.8749021e-001,
1.5209466e-003,
};
FloatTangents =
{
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
};
MinLimits = float4(0.0000000e+000, 0.0000000e+000, 0.0000000e+000, 0.0000000e+000);
}
CParticleSamplerCurve $LOCAL$/CParticleSamplerCurve_09C487E3
{
SamplerName = "GlowSampler";
Times =
{
0.0000000e+000,
7.5512230e-002,
1.6900170e-001,
1.0000000e+000,
};
FloatValues =
{
0.0000000e+000,
1.4312180e+000,
3.8749021e-001,
1.5209470e-003,
};
FloatTangents =
{
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
0.0000000e+000,
};
MinLimits = float4(0.0000000e+000, 0.0000000e+000, 0.0000000e+000, 0.0000000e+000);
}
CParticleEvolver_Localspace $LOCAL$/LocalSpace_1
{
CustomName = "Localspace";
}
CParticleEvolver_Localspace $LOCAL$/LocalSpace_2
{
CustomName = "Localspace";
}