Skip to content

Commit

Permalink
Add support for textureLod
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Sep 13, 2024
1 parent 4b2cdd3 commit a23581b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wadsrc/static/shaders/scene/layout_frag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ vec4 textureGrad(int index, vec2 P, vec2 dPdx, vec2 dPdy)
return textureGrad(textures[uTextureIndex + index], P, dPdx, dPdy);
}

vec4 textureLod(int index, vec2 P, float lod)
{
return textureLod(textures[uTextureIndex + index], P, lod);
}

vec4 texelFetch(int index, ivec2 P, int lod)
{
return texelFetch(textures[uTextureIndex + index], P, lod);
Expand Down

0 comments on commit a23581b

Please sign in to comment.