mirror of
https://github.com/johndoe6345789/SDL3CPlusPlus.git
synced 2026-04-25 06:04:57 +00:00
8 lines
381 B
GLSL
Executable File
8 lines
381 B
GLSL
Executable File
#include "lib/$fileTransformUv"
|
|
|
|
void mx_image_float(sampler2D tex_sampler, int layer, float defaultval, vec2 texcoord, int uaddressmode, int vaddressmode, int filtertype, int framerange, int frameoffset, int frameendaction, vec2 uv_scale, vec2 uv_offset, out float result)
|
|
{
|
|
vec2 uv = mx_transform_uv(texcoord, uv_scale, uv_offset);
|
|
result = texture(tex_sampler, uv).r;
|
|
}
|