version = 330 profile = "core" [layout] a_pos = "vec3" a_uv = "vec2" [uniform] transform = "mat4" texture_0 = "sampler2D" [fragment.constants] SMOOTH = false KERNEL_SIZE = 0 [fragment] output = { result = "vec4" } source = ''' result = texture(texture_0, uv); ''' [vertex] output = { uv = "vec2" } source = ''' gl_Position = transform * vec4(a_pos, 1.0); uv = a_uv; ''' [vertex.constants] tri_sin = "(a) sin(a)" [vertex.functions] sin = ''' float r_sin(float value) { return sin(value); } '''