diff --git a/LuaScript.Tests/PixelShaderMoonSharpTests.cs b/LuaScript.Tests/PixelShaderMoonSharpTests.cs index 9849e54..5fd7585 100644 --- a/LuaScript.Tests/PixelShaderMoonSharpTests.cs +++ b/LuaScript.Tests/PixelShaderMoonSharpTests.cs @@ -259,6 +259,17 @@ namespace LuaScript.Tests Assert.False(ctx.IsPixelsDirty); } + [Fact] + public void PixelShader_NumericBlend_IsComposite() + { + using var engine = CreateEngine(); + var (ctx, runner) = NewContext(ShaderSource); + + engine.Execute(ShaderSource + "\nobj.pixelshader(\"ps\", \"object\", \"object\", {}, 11)", ctx); + + Assert.Equal(PixelShaderBlend.Composite(11d), runner.Blend); + } + [Fact] public void PixelShader_UnknownBlend_Throws() {