Example #1
0
        private void CreateLightUniformBuffer(int bufferIndex)
        {
            // two ints + lights. two ints padded to 16 bytes
            var size = 16 + 1024;

            lightsBuffer = new UniformBuffer(GL.GenBuffer(), size, BufferUsageHint.DynamicDraw);
            lightsBuffer.SetBufferIndex(bufferIndex);
        }