Last active
April 1, 2024 17:00
-
-
Save chrisperrella/bf5d863766da8ab66fc253b822fad144 to your computer and use it in GitHub Desktop.
A custom shader for Marmoset Toolbag 3 that uses the second uv set for the Albedo subroutine.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "data/shader/mat/state.frag" | |
void AlbedoMapUV2( inout FragmentState s ) | |
{ | |
s.albedo = textureMaterial( tAlbedoMap, s.vertexTexCoordSecondary ); | |
s.albedo.xyz *= uAlbedoMapColor; | |
} | |
#ifdef Albedo | |
#undef Albedo | |
#endif | |
#define Albedo AlbedoMapUV2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment