示例#1
0
        public ParticleGenerator(byte[] options, bool applyFixes = false)
        {
            this.albedo                = (Albedo)options[0];
            this.blend_mode            = (Blend_Mode)options[1];
            this.specialized_rendering = (Specialized_Rendering)options[2];
            this.lighting              = (Lighting)options[3];
            this.render_targets        = (Render_Targets)options[4];
            this.depth_fade            = (Depth_Fade)options[5];
            this.black_point           = (Black_Point)options[6];
            this.fog               = (Fog)options[7];
            this.frame_blend       = (Frame_Blend)options[8];
            this.self_illumination = (Self_Illumination)options[9];

            ApplyFixes = applyFixes;
            TemplateGenerationValid = true;
        }
示例#2
0
        /// <summary>
        /// Generator instantiation for method specific shaders.
        /// </summary>
        public ParticleGenerator(Albedo albedo, Blend_Mode blend_mode, Specialized_Rendering specialized_rendering, Lighting lighting, Render_Targets render_targets,
                                 Depth_Fade depth_fade, Black_Point black_point, Fog fog, Frame_Blend frame_blend, Self_Illumination self_illumination, bool applyFixes = false)
        {
            this.albedo                = albedo;
            this.blend_mode            = blend_mode;
            this.specialized_rendering = specialized_rendering;
            this.lighting              = lighting;
            this.render_targets        = render_targets;
            this.depth_fade            = depth_fade;
            this.black_point           = black_point;
            this.fog               = fog;
            this.frame_blend       = frame_blend;
            this.self_illumination = self_illumination;

            ApplyFixes = applyFixes;
            TemplateGenerationValid = true;
        }