I've found a better way of implementing HDR compatibility. There's a nasal file that detects whether HDR is enabled or not and based on that you can switch different models, parts of the model etc. So for the windows you can keep the original ones and just copy & paste them without moving them, change their transparency, color and whatever else, name them differently, of course, and then you can toggle the visibility, using the select animation, of the new objects using the new property that the nasal file has introduced.
Example:
<animation>
<type>select</type>
<condition>
<not><property>/sim/rendering/hdr/hdr-enabled</property></not>
</condition>
<object-name>vitres</object-name>
</animation>
Here's the nasal file hdr.nas code:
###########################################################################
## HDR detection ##
## ##
Thx to : Sergei "Skydive" Solyshko
###########################################################################
props.globals.initNode("/sim/rendering/hdr/hdr-enabled", 0, "BOOL");
var myListener = setlistener("sim/signals/fdm-initialized", func
{
###########################################################################
var hdr = getprop("/sim/rendering/default-compositor");
if ( hdr == "Compositor/HDR/hdr" and hdr != nil) {
setprop("/sim/rendering/hdr/hdr-enabled", 1);
} else {
setprop("/sim/rendering/hdr/hdr-enabled", 0);
}
removelistener(myListener);
}, 0, 0);