Skip to content

fix: 全画面エフェクトが WebGL ビルドで描画されない問題を修正#9

Merged
void2610 merged 1 commit into
mainfrom
fix/webgl-fullscreen-copy-pass
Jul 12, 2026
Merged

fix: 全画面エフェクトが WebGL ビルドで描画されない問題を修正#9
void2610 merged 1 commit into
mainfrom
fix/webgl-fullscreen-copy-pass

Conversation

@void2610

Copy link
Copy Markdown
Owner

概要

自作シェーダー系フルスクリーンエフェクト (VisionWarp / RadialBlur / RadialMonochrome) が WebGL ビルドで一切描画されない。書き戻しに使っていた RenderGraphUtils.AddCopyPass が framebuffer fetch (エミュレーション) 依存で、URP core が WebGL/GLES3 では明示的に非対応としているため (IsFramebufferFetchEmulationSupportedOnCurrentPlatform)。

変更点

  • 3 つの RendererFeature の書き戻しを AddCopyPass から resourceData.cameraColor の差し替え (URP 公式ドキュメントの blit 推奨パターン) に変更。コピーパス自体が不要になる

動作確認

  • CinematicEffect.csproj のコンパイル成功 (0 Errors) を確認済み
  • Editor で VisionWarp / RadialBlur / RadialMonochrome の再生に回帰がないこと
  • WebGL ビルド (color-recollection PR プレビュー) の実機で 3 エフェクトが表示されること

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

WebGL (GLES3) で自作フルスクリーンエフェクトが描画されない問題に対して、URP RenderGraph での書き戻し方式を RenderGraphUtils.AddCopyPass 依存から、UniversalResourceData.cameraColor の差し替え(URP の推奨 blit パターン)へ変更する PR です。

Changes:

  • VisionWarp / RadialBlur / RadialMonochrome の各 RendererFeature で、Blit 先を新規テクスチャに変更
  • AddCopyPass による書き戻しを廃止し、resourceData.cameraColor を出力先へ差し替えるように変更
  • RenderGraph 内の一時テクスチャ命名を整理(*_TempTexture*_Texture

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
CinematicEffect/VisionWarpRendererFeature.cs CopyPass を廃止し、Blit 出力を cameraColor に差し替える方式へ変更
CinematicEffect/RadialMonochromeRendererFeature.cs 同上(RadialMonochrome 用)
CinematicEffect/RadialBlurRendererFeature.cs 同上(RadialBlur 用)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@void2610 void2610 merged commit 8c5e243 into main Jul 12, 2026
1 check passed
@void2610 void2610 deleted the fix/webgl-fullscreen-copy-pass branch July 12, 2026 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants