ファイル
YMM4-SpectrumColorShift/SpectrumColorShift/LinearizeCustomEffect.cs
T
routersys 709ec11404 物理ベースの色の計算を、sRGBの変換式と光の量での補間にする
・「物理ベース」の色の足し合わせと画素の間の補間を、sRGBの変換式による光の量で行うよう変更-M
2026-10-12 22:23:09 +09:00

27 行
724 B
C#

using Vortice.Direct2D1;
using YukkuriMovieMaker.Commons;
using YukkuriMovieMaker.Player.Video;
namespace SpectrumColorShift;
internal sealed class LinearizeCustomEffect : D2D1CustomShaderEffectBase
{
public LinearizeCustomEffect(IGraphicsDevicesAndContext devices) : base(Create<EffectImpl>(devices))
{
if (IsEnabled)
SetValue((int)Property.Precision, BufferPrecision.PerChannel16Float);
}
[CustomEffect(1)]
internal sealed class EffectImpl : D2D1CustomShaderEffectImplBase<EffectImpl>
{
public EffectImpl() : base(ShaderResourceUri.Get("SpectrumColorShiftLinearize"))
{
}
protected override void UpdateConstants()
{
}
}
}