-
Hi, on my way to port existing engine to bgfx, I noticed something in the bgfx's Imgui render backend shaders: Why do you need NORMAL? shouldn't it be removed? since Imgui vertex format only needs POSITION, COLOR0, TEXCOORD0 and the existing bgfx imgui shaders also don't need/use the NORMAL attribute. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
At some point there was ImGui widget that could render cubemap, and normal is used there: varying.def.sc doesn't affect any shaders, it just defines semantics for varyings. So since |
Beta Was this translation helpful? Give feedback.
-
Yeah thanks, as you said it is no more used perhaps better to remove it from varying.def as well to keep code clean. |
Beta Was this translation helpful? Give feedback.
At some point there was ImGui widget that could render cubemap, and normal is used there:
45a54db
varying.def.sc doesn't affect any shaders, it just defines semantics for varyings. So since
v_normal
is not used anywhere in shaders, it won't affect anything, and it could be removed.