Changeset 9f9f9a7 in opengl-game for laser.frag
- Timestamp:
- Jul 17, 2018, 3:21:12 AM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- fd6f465
- Parents:
- 6877ef3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
laser.frag
r6877ef3 r9f9f9a7 1 1 #version 410 2 2 3 in vec3 position_eye, color; 3 uniform sampler2D basic_texture; 4 uniform vec3 laser_color; 5 6 in vec2 texture_coordinates; 7 in vec3 position_eye; 4 8 5 9 out vec4 frag_color; 6 10 7 11 void main() { 8 frag_color = vec4(color, 1.0f); 12 vec4 texel = texture(basic_texture, texture_coordinates); 13 14 frag_color = vec4(texel.r * laser_color.r, texel.g * laser_color.g, texel.b * laser_color.b, texel.a); 9 15 }
Note:
See TracChangeset
for help on using the changeset viewer.