Version: 1.6.34.0
Frequency: Consistently
Severity: Low
Low - quality of life, workflow optimization, rare enough to not impact production, etc…
Context: any wasm gauge using nanovg
Similar MSFS 2020 issue: same issue in 2020
Bug description:
Gradient functions from nanoVG library like nvgLinearGradient work fine for solid colors, but don’t work for colors with alpha less than 1.0f. With alpha, they sometimes create gradient paint using only the start color, or gradient transition, but output colors are wrong.
Hard to make the fancy drop shadows in modern avionics without that working correctly.
Repro steps:
This is easily visible when you compare the nvg demo as it shows in wasm gauge sample aircraft from SDK to how it looks rendered outside the simulator using different nvg implementation. Note the box shadow under windows or color picker elements is just a uniform rectangle in MSFS
Attachments:


