Changeset f71d87d in opengl-game


Ignore:
Timestamp:
Oct 26, 2018, 3:26:16 AM (6 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
db06984
Parents:
e1eec78
Message:

Start changing the laser fragment shader to allow each laser to be drawn in a different color, and start creating release scripts for different platforms.

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • laser.frag

    re1eec78 rf71d87d  
    11#version 410
     2
     3#define MAX_NUM_OBJECTS 1024
    24
    35uniform sampler2D basic_texture;
    46uniform vec3 laser_color;
     7
     8// use this to allow lasers of different colors,
     9// while still drawing them all at the same time
     10layout (std140) uniform colors {
     11  vec3 laser_colors[MAX_NUM_OBJECTS];
     12};
    513
    614in vec2 texture_coordinates;
Note: See TracChangeset for help on using the changeset viewer.