I'm making custom models and renders for my entities, not using ModelBase. Basically they are presets of shapes so I can make complicated models faster. Sometimes they use texture, sometimes they use pure color (like GlStateManager.color((float) r, (float) g, (float) b, (float) a))
The models render really well, with color or texture, if there is no shader running.
But when GLSL shader is on, they either become tinted, noised, and sometimes even invisible.
Does anyone know the cause of this? I tried switching between GL11 functions and GlStateManager functions, no different, So i kinda ran out of ideas.
This is rendering ok
These are having problems
These are the codes.
CustomModelBase (the base for shapes like cubes, pipes, spheres,...)
CMBox (the cube model)
Model Drone file
Render file