scale_texcoord.glslv 230 B

123456789
  1. #ifndef SCALE_TEXCOORD_GLSLV
  2. #define SCALE_TEXCOORD_GLSLV
  3. vec2 scale_texcoord(vec2 texcoord, vec3 texture_scale) {
  4. // blender scales relative to (0.5, 0.5) point
  5. return (texcoord + 0.5) * texture_scale.xy - 0.5;
  6. }
  7. #endif