]> git.tdb.fi Git - libs/gl.git/commit
Adjust uniform organization for UnlitMaterial
authorMikko Rasa <tdb@tdb.fi>
Sat, 20 Mar 2021 13:37:12 +0000 (15:37 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sat, 20 Mar 2021 14:39:45 +0000 (16:39 +0200)
commit2bf5645d38492c5ef829478f3e04e78f31802fe6
treecf8e6aa67197a74aad60efe6252c285fb738bcc8
parentefb45a6851563cdb8077b6aad3ab92d4006d8790
Adjust uniform organization for UnlitMaterial

Its only property are now stored in a struct to match other material
types.  This allows using the name "color" without conflicting with the
vertex attribute.  The texture uniform was also renamed in order to
avoid clashing with the texture() function.
shaderlib/unlit.glsl
source/materials/unlitmaterial.cpp
source/materials/unlitmaterial.h