package engine.object; import engine.math.Vector3f; public class Hitbox extends ObjectGl{ /** * Create a rectangle shape, use setTextureWrap to correctly align the texture with the model * * @param z depth of your model the larger it is the more it will be "close" to the camera * @param w height of the rectangle * @param h width of the rectangle * @param size scaling factor of the rectangle, the model could not show up because this value is too small or too large, a good compromise is between 2 and 15 * @param color set to null if you don't want a Color on your model */ public Hitbox(float z, float w, float h, float size, Vector3f color) { super(z, w, h, size, null, color); this.setShader("shaders/ObjectGlColor/vert.glsl", "shaders/StylishShaders/HitboxFrag.glsl"); } }