Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可不可以出一个类似SRP的可以自定义绘制调用的重写啊 #248

Open
625673575 opened this issue Jan 5, 2024 · 3 comments
Labels
question Further information is requested

Comments

@625673575
Copy link

在开发MRT,渲染到纹理,后处理等功能时遇到的问题,通过各种render Event做起来代码完全没法看,还总是容易爆出bug

如果能有个重写绘制流程的函数,像URP那样的,然后可以用户自己定制绘制过程,也方便取到中间的FBO,那就非常方便了

@GuoLei1990 GuoLei1990 assigned zhuxudong and unassigned zhuxudong Jan 5, 2024
@GuoLei1990 GuoLei1990 added the question Further information is requested label Jan 5, 2024
@zhuxudong
Copy link
Member

可以参考下游乐场的 MRT 案例:https://galacean.antgroup.com/#/examples/latest/mrt
然后关于你说的render event 是什么,可以提供一下上下文么,我们去调研一下

@625673575
Copy link
Author

核心问题就是写类似的案例的时候,只能通过onBeginRender和onEndRender加上反复设置camera.renderTarget=null和各种layer造成的依赖及其容易变得复杂,出了警告之后也很难排查

@zhuxudong
Copy link
Member

目前阶段的管线钩子的确只开放了onBeginRenderonEndRender,确实灵活程度不高,但是你可以通过这个 Web端管线插件
查看每一帧(包括离屏渲染)的细节,我们也会在1.3以后逐步开放后处理管线和 SRP 在不久的未来。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants