H2xDev / GodotVMF

A VMF importer for Godot Engine
MIT License
84 stars 5 forks source link

PBR Material Import Support #20

Closed o-bedford closed 1 month ago

o-bedford commented 3 months ago

Adds support for the $mraotexture parameter in material vmt files.

MRAO maps must be imported similarly to any other texture with VTFEdit, just with the added step of merging metallic-roughness-ao maps either manually or with a script like PBR2VTF or PBR-2-Source.

Godot has support for MRAO maps, and this automatically sets the associated RGB channels as well, allowing for smooth PBR texture importing.

This guide on the valve developer wiki should also be applied to your personal development sourcemod in order to utilize these textures in hammer/hammer++.