37 lines
763 B
Plaintext
37 lines
763 B
Plaintext
#東方弾幕風[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);
|
||
|
||
}
|
||
|