QodotPlugin / qodot-plugin

(LEGACY) Quake .map support for Godot 3.x
MIT License
960 stars 70 forks source link

Allow ShaderMaterials as the default QodotMap Material #152

Closed AuzFox closed 2 years ago

AuzFox commented 2 years ago

This is a simple change that allows the QodotMap node to use a ShaderMaterial as the default material.

A new default_material_albedo_uniform property has been added to the QodotMap which determines the name of the shader uniform to pass the material texture to. If left as an empty string (the default), No attempt will be made to set the uniform.

This should not impact the standard map-building workflow, material overrides, or auto-PBR functionality.

AuzFox commented 2 years ago

Forgot to change one line in qodot_texture_loader.gd, should be correct now.

Shfty commented 2 years ago

Looks good, merging - thanks for the contribution :slightly_smiling_face: