H2xDev / GodotVMF

A VMF importer for Godot Engine/Redot Engine
MIT License
144 stars 7 forks source link

PBR Material Import Support #20

Closed o-bedford closed 6 months ago

o-bedford commented 8 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++.