Ignore:
Timestamp:
Dec 19, 2012, 11:16:30 PM (10 years ago)
Author:
sam
Message:

neercs: if shaders don't support integer attributes, pass them as vectors
of ubytes; foreground colour already works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/video/text-render.cpp

    r2094 r2154  
    5353    m_datasize = m_shader->GetUniformLocation("u_DataSize");
    5454    m_vdecl
    55       = new VertexDeclaration(VertexStream<uint32_t>(VertexUsage::Color),
    56                               VertexStream<uint32_t>(VertexUsage::Color));
     55      = new VertexDeclaration(VertexStream<u8vec4>(VertexUsage::Color),
     56                              VertexStream<u8vec4>(VertexUsage::Color));
    5757
    5858    CreateBuffers();
     
    6262{
    6363    m_vbo2 = new VertexBuffer(m_cells * sizeof(int32_t));
    64     m_vbo3 = new VertexBuffer(m_cells * sizeof(int32_t));
     64    m_vbo3 = new VertexBuffer(m_cells * sizeof(u8vec4));
    6565
    6666    m_fbo = new FrameBuffer(m_fbo_size);
Note: See TracChangeset for help on using the changeset viewer.