stride/samples/Particles/ParticlesSample/ParticlesSample.Game/Effects/ParticleCustomEffect.sdfx.cs
2020-04-14 16:37:41 +02:00

59 lines
2.1 KiB
C#

// <auto-generated>
// Do not edit this file yourself!
//
// This code was generated by Stride Shader Mixin Code Generator.
// To generate it yourself, please install Stride.VisualStudio.Package .vsix
// and re-save the associated .sdfx.
// </auto-generated>
using System;
using Stride.Core;
using Stride.Rendering;
using Stride.Graphics;
using Stride.Shaders;
using Stride.Core.Mathematics;
using Buffer = Stride.Graphics.Buffer;
namespace Stride.Rendering
{
internal static partial class ShaderMixins
{
internal partial class ParticleCustomEffect : IShaderMixinBuilder
{
public void Generate(ShaderMixinSource mixin, ShaderMixinContext context)
{
context.Mixin(mixin, "ParticleBaseEffect");
context.Mixin(mixin, "ParticleCustomShader");
if (context.GetParam(ParticleCustomShaderKeys.BaseColor) != null)
{
{
var __mixinToCompose__ = context.GetParam(ParticleCustomShaderKeys.BaseColor);
var __subMixin = new ShaderMixinSource();
context.PushComposition(mixin, "baseColor", __subMixin);
context.Mixin(__subMixin, __mixinToCompose__);
context.PopComposition();
}
}
if (context.GetParam(ParticleCustomShaderKeys.BaseIntensity) != null)
{
{
var __mixinToCompose__ = context.GetParam(ParticleCustomShaderKeys.BaseIntensity);
var __subMixin = new ShaderMixinSource();
context.PushComposition(mixin, "baseIntensity", __subMixin);
context.Mixin(__subMixin, __mixinToCompose__);
context.PopComposition();
}
}
}
[ModuleInitializer]
internal static void __Initialize__()
{
ShaderMixinManager.Register("ParticleCustomEffect", new ParticleCustomEffect());
}
}
}
}