本文整理匯總了Java中net.minecraft.client.renderer.GlStateManager.enableFog方法的典型用法代碼示例。如果您正苦於以下問題:Java GlStateManager.enableFog方法的具體用法?Java GlStateManager.enableFog怎麽用?Java GlStateManager.enableFog使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類net.minecraft.client.renderer.GlStateManager
的用法示例。
在下文中一共展示了GlStateManager.enableFog方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: renderTileEntityAt
import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
public void renderTileEntityAt(TileEntityEndPortal te, double x, double y, double z, float partialTicks, int destroyStage)
{
GlStateManager.disableFog();
TileEntityEndGateway tileentityendgateway = (TileEntityEndGateway)te;
if (tileentityendgateway.isSpawning() || tileentityendgateway.isCoolingDown())
{
GlStateManager.alphaFunc(516, 0.1F);
this.bindTexture(END_GATEWAY_BEAM_TEXTURE);
float f = tileentityendgateway.isSpawning() ? tileentityendgateway.getSpawnPercent(partialTicks) : tileentityendgateway.getCooldownPercent(partialTicks);
double d0 = tileentityendgateway.isSpawning() ? 256.0D - y : 50.0D;
f = MathHelper.sin(f * (float)Math.PI);
int i = MathHelper.floor((double)f * d0);
float[] afloat = EntitySheep.getDyeRgb(tileentityendgateway.isSpawning() ? EnumDyeColor.MAGENTA : EnumDyeColor.PURPLE);
TileEntityBeaconRenderer.renderBeamSegment(x, y, z, (double)partialTicks, (double)f, (double)tileentityendgateway.getWorld().getTotalWorldTime(), 0, i, afloat, 0.15D, 0.175D);
TileEntityBeaconRenderer.renderBeamSegment(x, y, z, (double)partialTicks, (double)f, (double)tileentityendgateway.getWorld().getTotalWorldTime(), 0, -i, afloat, 0.15D, 0.175D);
}
super.renderTileEntityAt(te, x, y, z, partialTicks, destroyStage);
GlStateManager.enableFog();
}
示例2: renderBeacon
import net.minecraft.client.renderer.GlStateManager; //導入方法依賴的package包/類
public void renderBeacon(double p_188206_1_, double p_188206_3_, double p_188206_5_, double p_188206_7_, double p_188206_9_, List<TileEntityBeacon.BeamSegment> p_188206_11_, double p_188206_12_)
{
GlStateManager.alphaFunc(516, 0.1F);
this.bindTexture(TEXTURE_BEACON_BEAM);
if (p_188206_9_ > 0.0D)
{
GlStateManager.disableFog();
int i = 0;
for (int j = 0; j < p_188206_11_.size(); ++j)
{
TileEntityBeacon.BeamSegment tileentitybeacon$beamsegment = (TileEntityBeacon.BeamSegment)p_188206_11_.get(j);
renderBeamSegment(p_188206_1_, p_188206_3_, p_188206_5_, p_188206_7_, p_188206_9_, p_188206_12_, i, tileentitybeacon$beamsegment.getHeight(), tileentitybeacon$beamsegment.getColors());
i += tileentitybeacon$beamsegment.getHeight();
}
GlStateManager.enableFog();
}
}