Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Happy New Years,

 

GOlfDCr.png

 

I have this block and no matter what I do. I can't get the lightning to normalize across all the faces. Id would also be happy if it shaded downwards across all the faces. But my preference is for uniform lighting from all sides.

 

There is a whole slew of things I tried thats commented out in the code.

 

 

public void renderBlock(TileEntitySmallBarrel tl, World world, int x, int y,int z, Block block) {

Tessellator tessellator = Tessellator.instance;

 

//float f = block.getLightOpacity(world, x, y, z);

////int l = world.getLightBrightnessForSkyBlocks(x, y, z, 0);

//int l1 = l % 65536;

//int l2 = l / 65536;

//tessellator.setColorOpaque_F(f, f, f);

//tessellator.setNormal(0.0F, 1.0F, 0.0F);

//OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit,(float) l1, (float) l2);

//int brightness = Blocks.stone.getMixedBrightnessForBlock(world, x, y, z);

//int lightValue = block.getMixedBrightnessForBlock(world, x, y, z);

////tessellator.setBrightness(brightness);

//tessellator.setColorOpaque_F(0.8F, 0.8F, 0.8F);

 

GL11.glPushMatrix();

float scale = 0.28F;

GL11.glScalef(scale, scale, scale);

GL11.glTranslatef(1.6F,0.05F,1.6F);

GL11.glRotatef(31F, 0.0F, 1.0F, 0.0F);

this.model.render();

GL11.glPopMatrix();

}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.