Hey Guys,

I am trying to do my first simple house opengl project and add the rotation functionality to the door. I did construct the door as a cube. My house includes couples of cubes and I only want rotate the door. I am trying to do this via shader but got stuck in a problem.

I could pass the whole vertex arrays to vertex shader and therefore rotate the whole house. But, it is not exactly what I am looking for. In fact, I am required to rotate the door. I am trying to find a way to separate the door cube vertex arrays in shader itself and apply rotation on the specific set of vertex arrays and not the whole.

long for some cool advice