Changeset 5936c58 in opengl-game for shaders


Ignore:
Timestamp:
Aug 16, 2019, 3:56:46 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
9cd92ae
Parents:
e1a7f5a
Message:

Allow parts of the UI overlay to be transpare, so that the 3D scene is visible behind it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • shaders/shader.frag

    re1a7f5a r5936c58  
    1313void main() {
    1414   if (isOverlay == 1) {
    15       outColor = vec4(fragColor * texture(uiTexSampler, fragTexCoord).rgb, 1.0);
     15      outColor = texture(uiTexSampler, fragTexCoord);
    1616   } else {
    1717      outColor = vec4(fragColor * texture(texSampler, fragTexCoord).rgb, 1.0);
Note: See TracChangeset for help on using the changeset viewer.