plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

In the upcoming flighting, we've changed the behaviour of the content.xml file. If your addon uses this file, please read this article!

Please take a moment to read the platform’s guidelines before you get started!


rotornut44 avatar image
rotornut44 asked FlyingRaccoon answered

Have glass/windshield reflection shaders changed?

I seem to remember having a decent reflective shader on flat panes of glass in the past, but now, any windows I have that are completely flat, at a 90* angle, no longer show any sort of reflectivity until the camera is placed nearly parallel with the glass pane. Facing straight on, the glass now appears to be completely transparent. The only other ways to tell if something is there is to have the sun illuminate it, making it have a foggy look, or to add a detail material for scratches and dirt.

Am I going crazy, or has this been changed in one of the recent updates? I'm using the Windshield material to take advantage of the rain effects. Is there anything I can do about it? It doesn't seem like changing metallic does anything and increasing opacity only makes the windows less see-through when in direct sunlight.




glass1.jpg (318.4 KiB)
glass2.jpg (458.9 KiB)
glass3.jpg (652.8 KiB)
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

1 Answer

FlyingRaccoon avatar image
FlyingRaccoon answered

Hello @rotornut44

The glass/windshield shader was updated with SU6 and SU7 as far as I can remember.
You don't want to use metallic for this. It should stay at 0.
A glass/windshield material will have 4% of reflection when looking at it perpendicularly, and it increases as the angle decreases. You can adjust that with the roughness parameter and reflection will be scattered a bit more.

If you want to tint your window, your want to use the albedo RGB component for this.
From what I can see in your picture, you seem to have rather used the albedo alpha component which explains why it gets more opaque when lit by the sun.
See the alpha component as a thin layer on top of the glass. For example a thin layer of dust on your car windshield, you can see through it when it's shadowed but it will be way more opaque when lit by the sun.

I hope this helps.


10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.