Cirno2022/script/sample/SamplePS02.txt

37 lines
763 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#東方弾幕風[Stage]
#ScriptVersion[3]
#Title["SamplePS02"]
#Text["SamplePS02ピクセルシェーダマスク"]
#Background["script/default_system/Default_Background_IceMountain.txt"]
@Initialize
{
TSamplePS2();
}
@MainLoop
{
yield;
}
task TSamplePS2
{
//パス設定
let dir = GetCurrentScriptDirectory();
let pathShader = dir ~ "SamplePS02_HLSL.txt";
//シェーダ生成
let objShader = ObjShader_Create();
ObjShader_SetShaderF(objShader, pathShader);
ObjShader_SetTechnique(objShader, "TecMask");
//シェーダにマスク画像を設定
let pathMask = dir ~ "SamplePS02_Mask.png";
ObjShader_SetTexture(objShader, "textureMask_", pathMask);
//特定の描画優先度にシェーダを適応
SetShaderI(objShader, 30, 100);
}