aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/PS3/SPU_Tasks/ChunkUpdate/GlassTile_SPU.h
blob: c79d0534c9acb77515984be0a9d8e802f1ab96f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include "HalfTransparentTile_SPU.h"

class GlassTile_SPU : public HalfTransparentTile_SPU
{
public:
	GlassTile_SPU(int id) : HalfTransparentTile_SPU(id) {}

	virtual bool shouldRenderFace(ChunkRebuildData *level, int x, int y, int z, int face)	// from parent class, here because it needs storgage
	{
		int id = level->getTile(x, y, z);
		if (!ms_pTileData->glassTile_allowSame && id == this->id) return false;
		return Tile_SPU::shouldRenderFace(level, x, y, z, face);

	}

    virtual int getRenderLayer() { return 0; }
};