Posted April 3, 20214 yr Is there any built-in way to do that? I also have an Idea to render 8 single-color copies of item model around original one, but in this case I need to find a way to render a single-color item (i.e. no texture, just a silhouette) Edited April 3, 20214 yr by Soft-fur dragon
April 3, 20214 yr what's the context? is the item yours or vanilla? where do you want to render it? is it an item stack?
April 3, 20214 yr Author Item may be both mine or vanilla As title says, I want to render it in GUI yes, ItemStack Current render code this.itemRenderer.zLevel = 100.0F; for (ResearchTableEntity.ItemState state : container.researchTableEntity.getItemStates()) { this.itemRenderer.renderItemAndEffectIntoGUI(this.minecraft.player, state.item, tableRect.x + state.pos.x - 8, tableRect.y + state.pos.y - 8); } this.itemRenderer.zLevel = 0.0F; Edited April 3, 20214 yr by Soft-fur dragon
April 3, 20214 yr hm, I'm thinking you could use of a shader, there may be a simpler way which I'm not aware of; Silhouete and outline are different things, to shade for a silhoute you could render any non-tranparent pixel of the item texture as black (or whatever color you'd want for the silhoute. actually, if you grayscaled the item texture you could tint it to whatever monochrome color you'd want). shaders for outline are a little more complicated, but not much, you can find info on such shaders online again, there maybe be an easier way to do it, but I'm not sure
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.