} //No idea what this might be but probably Opacity of the light since there is no alpha channel in color public LightEnvironmentLight(int[] position, ColorRGBVector3Byte color, ColorRGBVector3Byte color2, int unknown1, int unknown2, bool unknown3, float opacity) { this.Position = position; this.Color = color; this.Color2 = color2; this.Unknown1 = unknown1; this.Unknown2 = unknown2; this.Unknown3 = unknown3; this.Opacity = opacity; }
public LightDatLight(StreamReader sr) { string[] Line = sr.ReadLine().Split(' '); this.Position = new Vector3( float.Parse(Line[0], CultureInfo.InvariantCulture), float.Parse(Line[1], CultureInfo.InvariantCulture), float.Parse(Line[2], CultureInfo.InvariantCulture) ); this.Color = new ColorRGBVector3Byte(byte.Parse(Line[3]), byte.Parse(Line[4]), byte.Parse(Line[5])); this.Radius = float.Parse(Line[6], CultureInfo.InvariantCulture); }
public MaterialLibraryMaterial(string name, MaterialFlags flags, ColorRGBVector3Byte emissiveColor, float[] uvScroll, bool isBackfaceCullingDisabled, string shaderName, bool isSimpleShader, byte opacity, ColorRGBVector3Byte color) { this.Name = name; this.Flags = flags; this.EmissiveColor = emissiveColor; this.UVScroll = uvScroll; this.IsBackfaceCullingDisabled = isBackfaceCullingDisabled; this.ShaderName = shaderName; this.IsSimpleShader = isSimpleShader; this.Opacity = opacity; this.Color = color; }
public LightDatLight(int[] position, ColorRGBVector3Byte color, int radius) { this.Position = position; this.Color = color; this.Radius = radius; }
public MaterialLibraryMaterial(StreamReader sr) { string[] line; while ((line = sr.ReadLine().Split(new char[] { ' ', '=' }, StringSplitOptions.RemoveEmptyEntries))[0] != "[MaterialEnd]") { if (line[0] == "Name") { this.Name = line[1]; } else if (line[0] == "Flags") { if (line.Contains("addop")) { this.Flags |= MaterialFlags.AddOp; } if (line.Contains("subop")) { this.Flags |= MaterialFlags.SubOp; } if (line.Contains("alphaop")) { this.Flags |= MaterialFlags.AlphaOp; } if (line.Contains("uvclamp")) { this.Flags |= MaterialFlags.UVClamp; } if (line.Contains("texture_gouraud_")) { this.Flags |= MaterialFlags.GroundTexture; } } else if (line[0] == "EmissiveColor") { int r = int.Parse(line[1]); int g = int.Parse(line[2]); int b = int.Parse(line[3]); this.EmissiveColor = new ColorRGBVector3Byte ( (r == int.MinValue) ? (byte)~r : (byte)r, (g == int.MinValue) ? (byte)~g : (byte)g, (b == int.MinValue) ? (byte)~b : (byte)b ); } else if (line[0] == "UVScroll") { this.UVScroll = new float[] { float.Parse(line[1], CultureInfo.InvariantCulture), float.Parse(line[2], CultureInfo.InvariantCulture) }; } else if (line[0] == "DisableBackfaceCulling") { this.IsBackfaceCullingDisabled = (line[1] == "1"); } else if (line[0] == "ShaderName") { this.ShaderName = line[1]; } else if (line[0] == "SimpleShader") { this.IsSimpleShader = (line[1] == "1"); } else if (line[0] == "Opacity") { this.Opacity = byte.Parse(line[1]); } else if (line[0] == "Texture") { this.Texture = line[1]; } else if (line[0] == "Color24") { int r = int.Parse(line[1]); int g = int.Parse(line[2]); int b = int.Parse(line[3]); this.Color = new ColorRGBVector3Byte ( (r == int.MinValue) ? (byte)~r : (byte)r, (g == int.MinValue) ? (byte)~g : (byte)g, (b == int.MinValue) ? (byte)~b : (byte)b ); } } }