Skip to content

Recognise Unity ShaderGraph texture slot names - #74

Open
Dremet wants to merge 1 commit into
V-Sekai:mainfrom
Dremet:shadergraph-texture-slots
Open

Recognise Unity ShaderGraph texture slot names#74
Dremet wants to merge 1 commit into
V-Sekai:mainfrom
Dremet:shadergraph-texture-slots

Conversation

@Dremet

@Dremet Dremet commented Aug 11, 2026

Copy link
Copy Markdown

Materials authored against a ShaderGraph shader name their texture properties
_Albedo_Map, _Normal_Map, _Emission_Map and _Metallic_Smoothness_Map rather than
the built-in _MainTex / _BumpMap / _EmissionMap / _MetallicGlossMap.

The albedo fallback in UnidotMaterial.convert_properties() gathers candidate
properties but deliberately skips every name ending in "Map" (only *ColorMap and
*BaseMap are added back), so a ShaderGraph material matches nothing and converts
to a StandardMaterial3D with every texture slot null - white, untextured, and
with no warning or failure logged to say so.

Found while converting the Synty POLYGON packs, whose shader uses these names
exclusively: all ~4,000 materials across four packs came out blank. Adding the
names restores albedo and normal maps; verified on Godot 4.7.1.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com

Materials authored against a ShaderGraph shader name their texture properties
_Albedo_Map, _Normal_Map, _Emission_Map and _Metallic_Smoothness_Map rather than
the built-in _MainTex / _BumpMap / _EmissionMap / _MetallicGlossMap.

The albedo fallback in UnidotMaterial.convert_properties() gathers candidate
properties but deliberately skips every name ending in "Map" (only *ColorMap and
*BaseMap are added back), so a ShaderGraph material matches nothing and converts
to a StandardMaterial3D with every texture slot null - white, untextured, and
with no warning or failure logged to say so.

Found while converting the Synty POLYGON packs, whose shader uses these names
exclusively: all ~4,000 materials across four packs came out blank. Adding the
names restores albedo and normal maps; verified on Godot 4.7.1.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant