Class ItemRenderInfo
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
Holds information on how a collectible should be rendered in hands, on the ground or in gui. In collectible.OnBeforeRender() the values are prefilled with the default ones.
public class ItemRenderInfo
- Inheritance
-
ItemRenderInfo
- Inherited Members
- Extension Methods
Fields
AlphaTest
For discarding fragments with alpha value below this threshold
public float AlphaTest
Field Value
ApplyColor
public bool ApplyColor
Field Value
CullFaces
Wether or not to cull back faces
public bool CullFaces
Field Value
DamageEffect
public float DamageEffect
Field Value
HalfTransparent
(Currently) not used.
public bool HalfTransparent
Field Value
InSlot
The slot the stack is currently in
public ItemSlot InSlot
Field Value
ModelRef
The model to be rendered
public MultiTextureMeshRef ModelRef
Field Value
NormalShaded
public bool NormalShaded
Field Value
OverlayOpacity
public float OverlayOpacity
Field Value
OverlayTexture
public LoadedTexture OverlayTexture
Field Value
TextureId
The texture to be used when rendering. Should probalby be the texture id of the block or item texture atlas
public int TextureId
Field Value
TextureSize
public Size2i TextureSize
Field Value
Transform
The transform to be applied when rendered
public ModelTransform Transform
Field Value
dt
public float dt
Field Value
Methods
SetRotOverlay(ICoreClientAPI, float)
public void SetRotOverlay(ICoreClientAPI capi, float opacity)
Parameters
capi
ICoreClientAPIopacity
float