From 3a298624233f87ecfcbd75e10e54554af5d6003d Mon Sep 17 00:00:00 2001 From: routersys Date: Sat, 4 Jul 2026 11:44:32 +0900 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=80=A4=E5=90=88=E6=88=90=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E3=81=AE=E3=83=86=E3=82=B9=E3=83=88=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LuaScript.Tests/PixelShaderMoonSharpTests.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) 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() {