You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
本 PR 为结构 Picture-in-Picture 渲染新增可选的 glitch 后处理效果,并补充对应的渲染管线、参数 UBO 和片元着色器。同时清理了相关代码中的未使用 import。
变更内容
GLITCH后处理渲染管线和core/glitch片元着色器GlitchPostEffect,用于对输入纹理应用基于时间的扫描线、水平抖动和蓝色染色效果GlitchParametersUbo,向 shader 传递输入尺寸和游戏时间参数ALRPostEffects中初始化并暴露 glitch 后处理实例glitched开关,并在启用时将结构渲染结果经过 glitch 后处理GuiRenderExtras.submitStructure接口以传递 glitch 开关兼容性
submitStructure便捷调用保持默认非 glitch 行为submitStructure重载的代码,调用方需要显式传入是否启用 glitch