graphics/08-particle-system/assets/shaders/default_fragment.glsl
2023-12-23 17:09:43 +01:00

13 lines
208 B
GLSL

#version 330 core
in vec4 _color;
in vec2 _texture_position;
in float _ctt;
out vec4 color;
uniform sampler2D sampler;
void main() {
color = texture(sampler, _texture_position) * (_color * _ctt);
}