Ejemplo n.º 1
0
 internal ScenarioLightFixtureStructBlockBase(BinaryReader binaryReader)
 {
     this.color               = binaryReader.ReadColorR8G8B8();
     this.intensity           = binaryReader.ReadSingle();
     this.falloffAngleDegrees = binaryReader.ReadSingle();
     this.cutoffAngleDegrees  = binaryReader.ReadSingle();
 }
 internal ObjectChangeColorInitialPermutationBase(BinaryReader binaryReader)
 {
     this.weight          = binaryReader.ReadSingle();
     this.colorLowerBound = binaryReader.ReadColorR8G8B8();
     this.colorUpperBound = binaryReader.ReadColorR8G8B8();
     this.variantName     = binaryReader.ReadStringID();
 }
 internal ScenarioAtmosphericFogPaletteBase(BinaryReader binaryReader)
 {
     this.name  = binaryReader.ReadStringID();
     this.color = binaryReader.ReadColorR8G8B8();
     this.spreadDistanceWorldUnits = binaryReader.ReadSingle();
     this.invalidName_             = binaryReader.ReadBytes(4);
     this.maximumDensity01         = binaryReader.ReadSingle();
     this.startDistanceWorldUnits  = binaryReader.ReadSingle();
     this.opaqueDistanceWorldUnits = binaryReader.ReadSingle();
     this.color0                          = binaryReader.ReadColorR8G8B8();
     this.invalidName_0                   = binaryReader.ReadBytes(4);
     this.maximumDensity010               = binaryReader.ReadSingle();
     this.startDistanceWorldUnits0        = binaryReader.ReadSingle();
     this.opaqueDistanceWorldUnits0       = binaryReader.ReadSingle();
     this.invalidName_1                   = binaryReader.ReadBytes(4);
     this.planarColor                     = binaryReader.ReadColorR8G8B8();
     this.planarMaxDensity01              = binaryReader.ReadSingle();
     this.planarOverrideAmount01          = binaryReader.ReadSingle();
     this.planarMinDistanceBiasWorldUnits = binaryReader.ReadSingle();
     this.invalidName_2                   = binaryReader.ReadBytes(44);
     this.patchyColor                     = binaryReader.ReadColorR8G8B8();
     this.invalidName_3                   = binaryReader.ReadBytes(12);
     this.patchyDensity01                 = binaryReader.ReadVector2();
     this.patchyDistanceWorldUnits        = binaryReader.ReadRange();
     this.invalidName_4                   = binaryReader.ReadBytes(32);
     this.patchyFog                       = binaryReader.ReadTagReference();
     this.mixers                          = ReadScenarioAtmosphericFogMixerBlockArray(binaryReader);
     this.amount01                        = binaryReader.ReadSingle();
     this.threshold01                     = binaryReader.ReadSingle();
     this.brightness01                    = binaryReader.ReadSingle();
     this.gammaPower                      = binaryReader.ReadSingle();
     this.cameraImmersionFlags            = (CameraImmersionFlags)binaryReader.ReadInt16();
     this.invalidName_5                   = binaryReader.ReadBytes(2);
 }
Ejemplo n.º 4
0
 internal GlobalWaterDefinitionsBlockBase(BinaryReader binaryReader)
 {
     this.shader              = binaryReader.ReadTagReference();
     this.section             = ReadWaterGeometrySectionBlockArray(binaryReader);
     this.geometryBlockInfo   = new GlobalGeometryBlockInfoStructBlock(binaryReader);
     this.sunSpotColor        = binaryReader.ReadColorR8G8B8();
     this.reflectionTint      = binaryReader.ReadColorR8G8B8();
     this.refractionTint      = binaryReader.ReadColorR8G8B8();
     this.horizonColor        = binaryReader.ReadColorR8G8B8();
     this.sunSpecularPower    = binaryReader.ReadSingle();
     this.reflectionBumpScale = binaryReader.ReadSingle();
     this.refractionBumpScale = binaryReader.ReadSingle();
     this.fresnelScale        = binaryReader.ReadSingle();
     this.sunDirHeading       = binaryReader.ReadSingle();
     this.sunDirPitch         = binaryReader.ReadSingle();
     this.fOV               = binaryReader.ReadSingle();
     this.aspect            = binaryReader.ReadSingle();
     this.height            = binaryReader.ReadSingle();
     this.farz              = binaryReader.ReadSingle();
     this.rotateOffset      = binaryReader.ReadSingle();
     this.center            = binaryReader.ReadVector2();
     this.extents           = binaryReader.ReadVector2();
     this.fogNear           = binaryReader.ReadSingle();
     this.fogFar            = binaryReader.ReadSingle();
     this.dynamicHeightBias = binaryReader.ReadSingle();
 }
Ejemplo n.º 5
0
 internal ObjectChangeColorFunctionBase(BinaryReader binaryReader)
 {
     this.invalidName_    = binaryReader.ReadBytes(4);
     this.scaleFlags      = (ScaleFlags)binaryReader.ReadInt32();
     this.colorLowerBound = binaryReader.ReadColorR8G8B8();
     this.colorUpperBound = binaryReader.ReadColorR8G8B8();
     this.darkenBy        = binaryReader.ReadStringID();
     this.scaleBy         = binaryReader.ReadStringID();
 }
Ejemplo n.º 6
0
 internal GlobalShaderParameterBlockBase(BinaryReader binaryReader)
 {
     this.name                = binaryReader.ReadStringID();
     this.type                = (Type)binaryReader.ReadInt16();
     this.invalidName_        = binaryReader.ReadBytes(2);
     this.bitmap              = binaryReader.ReadTagReference();
     this.constValue          = binaryReader.ReadSingle();
     this.constColor          = binaryReader.ReadColorR8G8B8();
     this.animationProperties = ReadShaderAnimationPropertyBlockArray(binaryReader);
 }
Ejemplo n.º 7
0
 internal ShaderPassParameterBlockBase(BinaryReader binaryReader)
 {
     this.name              = binaryReader.ReadStringID();
     this.explanation       = ReadData(binaryReader);
     this.type              = (Type)binaryReader.ReadInt16();
     this.flags             = (Flags)binaryReader.ReadInt16();
     this.defaultBitmap     = binaryReader.ReadTagReference();
     this.defaultConstValue = binaryReader.ReadSingle();
     this.defaultConstColor = binaryReader.ReadColorR8G8B8();
     this.sourceExtern      = (SourceExtern)binaryReader.ReadInt16();
     this.invalidName_      = binaryReader.ReadBytes(2);
 }
 internal RenderLightingStructBlockBase(BinaryReader binaryReader)
 {
     this.ambient                 = binaryReader.ReadColorR8G8B8();
     this.shadowDirection         = binaryReader.ReadVector3();
     this.lightingAccuracy        = binaryReader.ReadSingle();
     this.shadowOpacity           = binaryReader.ReadSingle();
     this.primaryDirectionColor   = binaryReader.ReadColorR8G8B8();
     this.primaryDirection        = binaryReader.ReadVector3();
     this.secondaryDirectionColor = binaryReader.ReadColorR8G8B8();
     this.secondaryDirection      = binaryReader.ReadVector3();
     this.shIndex                 = binaryReader.ReadInt16();
     this.invalidName_            = binaryReader.ReadBytes(2);
 }
Ejemplo n.º 9
0
 internal ShaderTemplateParameterBlockBase(BinaryReader binaryReader)
 {
     this.name                 = binaryReader.ReadStringID();
     this.explanation          = ReadData(binaryReader);
     this.type                 = (Type)binaryReader.ReadInt16();
     this.flags                = (Flags)binaryReader.ReadInt16();
     this.defaultBitmap        = binaryReader.ReadTagReference();
     this.defaultConstValue    = binaryReader.ReadSingle();
     this.defaultConstColor    = binaryReader.ReadColorR8G8B8();
     this.bitmapType           = (BitmapType)binaryReader.ReadInt16();
     this.invalidName_         = binaryReader.ReadBytes(2);
     this.bitmapAnimationFlags = (BitmapAnimationFlags)binaryReader.ReadInt16();
     this.invalidName_0        = binaryReader.ReadBytes(2);
     this.bitmapScale          = binaryReader.ReadSingle();
 }
 internal ShaderPropertiesBlockBase(BinaryReader binaryReader)
 {
     this.diffuseMap               = binaryReader.ReadTagReference();
     this.lightmapEmissiveMap      = binaryReader.ReadTagReference();
     this.lightmapEmissiveColor    = binaryReader.ReadColorR8G8B8();
     this.lightmapEmissivePower    = binaryReader.ReadSingle();
     this.lightmapResolutionScale  = binaryReader.ReadSingle();
     this.lightmapHalfLife         = binaryReader.ReadSingle();
     this.lightmapDiffuseScale     = binaryReader.ReadSingle();
     this.alphaTestMap             = binaryReader.ReadTagReference();
     this.translucentMap           = binaryReader.ReadTagReference();
     this.lightmapTransparentColor = binaryReader.ReadColorR8G8B8();
     this.lightmapTransparentAlpha = binaryReader.ReadSingle();
     this.lightmapFoliageScale     = binaryReader.ReadSingle();
 }
Ejemplo n.º 11
0
 internal GlobalGeometrySectionRawVertexBlockBase(BinaryReader binaryReader)
 {
     this.position                  = binaryReader.ReadVector3();
     this.nodeIndicesOLD            = new [] { new NodeIndicesOLD(binaryReader), new NodeIndicesOLD(binaryReader), new NodeIndicesOLD(binaryReader), new NodeIndicesOLD(binaryReader), };
     this.nodeWeights               = new [] { new NodeWeights(binaryReader), new NodeWeights(binaryReader), new NodeWeights(binaryReader), new NodeWeights(binaryReader), };
     this.nodeIndicesNEW            = new [] { new NodeIndicesNEW(binaryReader), new NodeIndicesNEW(binaryReader), new NodeIndicesNEW(binaryReader), new NodeIndicesNEW(binaryReader), };
     this.useNewNodeIndices         = binaryReader.ReadInt32();
     this.adjustedCompoundNodeIndex = binaryReader.ReadInt32();
     this.texcoord                  = binaryReader.ReadVector2();
     this.normal                           = binaryReader.ReadVector3();
     this.binormal                         = binaryReader.ReadVector3();
     this.tangent                          = binaryReader.ReadVector3();
     this.anisotropicBinormal              = binaryReader.ReadVector3();
     this.secondaryTexcoord                = binaryReader.ReadVector2();
     this.primaryLightmapColor             = binaryReader.ReadColorR8G8B8();
     this.primaryLightmapTexcoord          = binaryReader.ReadVector2();
     this.primaryLightmapIncidentDirection = binaryReader.ReadVector3();
     this.invalidName_                     = binaryReader.ReadBytes(12);
     this.invalidName_0                    = binaryReader.ReadBytes(8);
     this.invalidName_1                    = binaryReader.ReadBytes(12);
 }
 public static void Write(this BinaryWriter binaryWriter, ColorR8G8B8 value)
 {
     binaryWriter.Write(value.R);
     binaryWriter.Write(value.G);
     binaryWriter.Write(value.B);
 }
Ejemplo n.º 13
0
 internal ShaderPostprocessColorBlockBase(BinaryReader binaryReader)
 {
     this.parameterIndex = binaryReader.ReadByte();
     this.color          = binaryReader.ReadColorR8G8B8();
 }
Ejemplo n.º 14
0
 internal ShaderPostprocessColorPropertyBlockBase(BinaryReader binaryReader)
 {
     this.color = binaryReader.ReadColorR8G8B8();
 }