]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_sprite.c
Overhauled quake3 shader loading such that it now produces shader passes that could...
[xonotic/darkplaces.git] / model_sprite.c
index 9b8bab23b1aa03a115afd0efef6e0ffa7fbddf8e..2dd746957207d11f89d58cc0f028bce9cac2b8c1 100644 (file)
@@ -75,8 +75,8 @@ static void Mod_SpriteSetupTexture(texture_t *texture, skinframe_t *skinframe, q
        else if (skinframe->hasalpha)
                texture->basematerialflags |= MATERIALFLAG_ALPHA | MATERIALFLAG_BLENDED | MATERIALFLAG_NOSHADOW;
        texture->currentmaterialflags = texture->basematerialflags;
-       texture->numskinframes = 1;
-       texture->currentskinframe = texture->skinframes[0] = skinframe;
+       texture->materialshaderpass = texture->shaderpasses[0] = Mod_CreateShaderPass(skinframe);
+       texture->currentskinframe = skinframe;
        texture->surfaceflags = 0;
        texture->supercontents = SUPERCONTENTS_SOLID;
        if (!(texture->basematerialflags & MATERIALFLAG_BLENDED))