December 2014 files

This commit is contained in:
Loki Rautio
2026-03-01 11:00:23 -06:00
parent b691c43c44
commit 8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions

View File

@@ -4,6 +4,9 @@
#include "Textures.h"
#include "Tesselator.h"
#include "Lighting.h"
#include "ResourceLocation.h"
ResourceLocation HugeExplosionParticle::EXPLOSION_LOCATION = ResourceLocation(TN_MISC_EXPLOSION);
HugeExplosionParticle::HugeExplosionParticle(Textures *textures, Level *level, double x, double y, double z, double xa, double ya, double za) : Particle(level,x,y,z,0,0,0)
{
@@ -29,7 +32,7 @@ void HugeExplosionParticle::render(Tesselator *t, float a, float xa, float ya, f
{
int tex = (int) ((life + a) * 15 / lifeTime);
if (tex > 15) return;
textures->bindTexture(TN_MISC_EXPLOSION); // 4J was "/misc/explosion.png"
textures->bindTexture(&EXPLOSION_LOCATION);
float u0 = (tex % 4) / 4.0f;
float u1 = u0 + 0.999f / 4.0f;