public NiTextureEffect() { textureFiltering = TexFilterMode.FILTER_TRILERP; maxAnisotropy = (ushort)0; textureClamping = TexClampMode.WRAP_S_WRAP_T; textureType = TextureType.TEX_ENVIRONMENT_MAP; coordinateGenerationType = CoordGenType.CG_SPHERE_MAP; image = null; sourceTexture = null; enablePlane = (byte)0; ps2L = (short)0; ps2K = (short)-75; unknownShort = (ushort)0; }
public NiTextureEffect(NIFReader file, BinaryReader reader) : base(file, reader) { ModelProjectionMatrix = reader.ReadMatrix33(); ModelProjectionTransform = reader.Read <Vector3>(); TextureFiltering = (TexFilterMode)reader.ReadUInt32(); TextureClamping = (TexClampMode)reader.ReadUInt32(); EffectType = (EffectType)reader.ReadUInt32(); CoordGenType = (CoordGenType)reader.ReadUInt32(); SourceTexture = new NiRef <NiSourceTexture>(reader); ClippingPlane = reader.ReadBoolean(); ModelPlane = reader.Read <Plane>(); PS2L = reader.ReadInt16(); PS2K = reader.ReadInt16(); }
public NiTextureEffect(NiFile niFile) : base(niFile) { modelProjectionMatrix = niFile.Reader.ReadMatrix(); modelProjectionTransform = niFile.Reader.ReadVector3(); textureFiltering = (TexFilterMode)niFile.Reader.ReadInt32(); textureClamping = (TexClampMode)niFile.Reader.ReadInt32(); textureType = (EffectType)niFile.Reader.ReadInt32(); coordinateGenerationType = (CoordGenType)niFile.Reader.ReadInt32(); sourceTexture = niFile.Reader.ReadInt32(); clippingPlane = niFile.Reader.ReadByte(); unknownVector = niFile.Reader.ReadVector3(); unknownFloat = niFile.Reader.ReadSingle(); PS2L = niFile.Reader.ReadInt16(); PS2K = niFile.Reader.ReadInt16(); unknownShort = niFile.Reader.ReadInt16(); }