hello, knowers of all things shady.
please answer me this: a texture coordinate can be assigned into a varying variable in a vert. program and then used in the fragment program, when the fixed part of the pipeline calculates the level of detail, does it calculate it according to the derivatives of that specific varying variable?
for example, if i decide to assign a texcoord like this in a vertex program:
someTexCoord = gl_MultiTexCoord0.xy * scale;
and then sample during the fragment stage
float result= texture2D(samplerName, someTexCoord).x;
so how does the lod look like? is it also scaled by scale?
can anyone xplain pls? ty.
please answer me this: a texture coordinate can be assigned into a varying variable in a vert. program and then used in the fragment program, when the fixed part of the pipeline calculates the level of detail, does it calculate it according to the derivatives of that specific varying variable?
for example, if i decide to assign a texcoord like this in a vertex program:
someTexCoord = gl_MultiTexCoord0.xy * scale;
and then sample during the fragment stage
float result= texture2D(samplerName, someTexCoord).x;
so how does the lod look like? is it also scaled by scale?
can anyone xplain pls? ty.