Following up on this because it's really bothering right now. Pretty sure it's not a bug but that I have some misconception and I'm doing something wrong, so a bit of clarification would be great.
The focus here is the aluminium foil. It's got a diffuse map, a narmal map and a roughness map, but no specular map, beause I figured it's uniform enough ot not need one, but then the specularity isn't quite as I expected it to work.
Here's what it looks like if I set a white specular color and a power of 2.5 in the (old) PBR shader:
This looks about the way I want it, so I set these properties (including all the others) in the material of the .msh file. But the result looks like this:
When I go to the debug controls to edit those materials, they are shown as loaded from the .msh file, but it looks like they are not applied. If I edit the specular power, the whole look immediately changes, and I can set it back to the old value (2.5) and the result is as it should be (i.e. different to what the material looked like when it loaded in). What am I missing here?
Here's the material definition from the .msh, if that is any help:
Code:
MATERIAL ThermalCoating
0.7 0.7 0.796 1
0.9 0.9 0.9 1
1 1 1 1 2.5
0 0 0 0
If I save the settings in debug control, this is produced:
Code:
CONFIG_VERSION 3
; =============================================
MESH space_station_pack\JunctionSquare
SHADER PBR-Old
; ---------------------------------------------
MATERIAL 12
SPECULAR 1.000000 1.000000 1.000000 2.500000
So the specular settings
are identical. If I load the sim with the D3D9 cfg in place, everything works. But the problem is a bit that I would really like to have those materials applied by mesh, not by vessel, since the mesh might appear in multiple vessels.
Since reflectivity and roughness are both applied as intended, I guess the takeaway here is that if I want that, the PBR shader ignores the orbiter .msh settings and either takes the values from the cfg file or from the maps. Which would be a bit confusing, because it totally does respect the diffuse and ambient color settings. Is this intended behaviour?