Changeset fba08f2 in opengl-game for shaders/shader.frag
- Timestamp:
- Aug 2, 2019, 4:15:02 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 4f63fa8
- Parents:
- 621664a
- git-author:
- Dmitry Portnoy <dmp1488@…> (08/02/19 04:01:00)
- git-committer:
- Dmitry Portnoy <dmp1488@…> (08/02/19 04:15:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
shaders/shader.frag
r621664a rfba08f2 2 2 #extension GL_ARB_separate_shader_objects : enable 3 3 4 layout(binding = 1) uniform sampler2D texSampler; 5 4 6 layout(location = 0) in vec3 fragColor; 7 layout(location = 1) in vec2 fragTexCoord; 5 8 6 9 layout(location = 0) out vec4 outColor; 7 10 8 11 void main() { 9 outColor = vec4(fragColor, 1.0); 12 // outColor = vec4(fragColor, 1.0); 13 // outColor = texture(texSampler, fragTexCoord); 14 outColor = vec4(fragColor * texture(texSampler, fragTexCoord).rgb, 1.0); 10 15 }
Note:
See TracChangeset
for help on using the changeset viewer.