1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/** * \file glsl-fs-texture-lod-01.frag */ #version 120 #extension GL_ARB_shader_texture_lod: enable uniform sampler2D sampler; uniform float lod; varying vec2 texcoord; void main() { gl_FragColor = texture2DLod(sampler, texcoord, lod); }