Cirno2022/script/sample/SamplePS02.txt

37 lines
763 B
Plaintext
Raw Normal View History

2022-09-14 15:23:27 +00:00
#東方弾幕風[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);
}