Changeset f00ee54 in opengl-game for shaders/overlay.frag
- Timestamp:
 - Aug 25, 2019, 12:58:06 AM (6 years ago)
 - Branches:
 - feature/imgui-sdl, master, points-test
 - Children:
 - 721e8be
 - Parents:
 - d53ef6a
 - File:
 - 
      
- 1 edited
 
- 
          
  shaders/overlay.frag (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
shaders/overlay.frag
rd53ef6a rf00ee54 4 4 layout(binding = 0) uniform sampler2D uiTexSampler; 5 5 6 layout(location = 0) in vec3 fragColor; 7 layout(location = 1) in vec2 fragTexCoord; 8 layout(location = 2) flat in uint isOverlay; 6 layout(location = 0) in vec2 fragTexCoord; 9 7 10 8 layout(location = 0) out vec4 outColor; … … 12 10 void main() { 13 11 outColor = texture(uiTexSampler, fragTexCoord); 14 15 if (isOverlay == 1) {16 outColor = texture(uiTexSampler, fragTexCoord);17 } else {18 outColor = vec4(fragColor * texture(uiTexSampler, fragTexCoord).rgb, 1.0);19 }20 12 }  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/medieval/chrome/site/your_project_logo.png)