koerismo / PBR-2-Source

A Python-powered gui for converting pbr materials into Source Engine-compatible materials.
GNU General Public License v3.0
31 stars 2 forks source link

No reflectivity info in VTF #7

Closed romario516 closed 4 months ago

romario516 commented 4 months ago

there's no reflectivity calculated for textures for brushes. v2.0.2

koerismo commented 4 months ago

Hi! Reflectivity info is generated for brushes, but it is much less apparent due to the shader lacking support for phong. I could attempt to scale up the envmap reflections to account for this, but at the moment only very reflective surfaces will receive envmap reflections. For now, you can modify the envmap tint and mask-contrast parameters to increase the reflectiveness.

romario516 commented 4 months ago

No no no, not the envmap but the reflectivity, that defines how much and with what color light would bounce from that brush with this texture. This info can be inside either VTF or inside VMT as a parameter $reflectivity.

koerismo commented 4 months ago

Ah, I see. I assumed srctools would handle that, but I guess not. Will patch in the next version!

koerismo commented 4 months ago

Implemented in v2.0.3-beta. Feel free to reopen if there's any bugs I missed!