Example #1
0
// 最後のスクリーンを作る
void Deferred::FinalResultDeferred()
{
	//現在のレンダーターゲットを一時的に確保
	Surface* now = nullptr;
	tdnSystem::GetDevice()->GetRenderTarget(0, &now);

	//シェーダーへ転送
	//shader->SetValue("LightTex", light);
	//shader->SetValue("SpecTex", spec);

	// 通常描画
	DefaultRender();

	//レンダーターゲットの復元
	tdnSystem::GetDevice()->SetRenderTarget(0, now);

}
Example #2
0
// 描画.
void FoveatedRenderingApp::RenderInternal(izanagi::graph::CGraphicsDevice* device)
{
    if (m_canFoveated) {
        FoveatedRender(device);
    }
    else {
        DefaultRender(device);
    }

    if (device->Begin2D()) {
        izanagi::CDebugFont* debugFont = GetDebugFont();

        debugFont->Begin(device, 0, izanagi::CDebugFont::FONT_SIZE * 2);

        debugFont->DBPrint(
            device,
            "%s\n",
            m_canFoveated ? "Foveated" : "Default");

        debugFont->End();

        device->End2D();
    }
}