-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Lack of MRT support in ShaderLab
#2373
Labels
enhancement
New feature or request
high priority
High priority issue
Rendering
Rendering related functions
shader
Shader related functions
Milestone
Comments
Sway007
added
enhancement
New feature or request
shader
Shader related functions
high priority
High priority issue
labels
Sep 10, 2024
默认第一个属性layout location就是0,剩下的索引依次递增不行吗?如果要加索引这里mrt的struct语法就要变,跟常用的struct语法不一致,没必要增加语法复杂度啊 |
那照你这个设计应该是数组,不是 struct |
mrt 的指定可以是缺省的,比如只绑定 1 和 3, 我不用2 |
第2个属性你不赋值操作就好了呀 |
Merged
3 tasks
WebGL 1.0
WebGL 2.0
ShaderLab
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
high priority
High priority issue
Rendering
Rendering related functions
shader
Shader related functions
Is your feature request related to a problem? Please describe.
Currently developer can only specify multiple render target using
gl_FragData
with glsl100 syntax, butgl_FragData
is not supported in WebGL2.In Unity
ShaderLab
, you specify mrt by sematic keywordsSV_Target
,SV_Target0
,SV_Target1
, ...Describe the solution you'd like
A complete MRT support in WebGL1 and Webgl2
Syntax
All syntax above are supported.
The text was updated successfully, but these errors were encountered: