Improve compatibility with old shaders
This commit is contained in:
parent
a9a5ee8a96
commit
9bf1668195
1 changed files with 5 additions and 0 deletions
|
|
@ -30,3 +30,8 @@ vec4 texture(int index, vec2 p)
|
|||
{
|
||||
return texture(textures[uTextureIndex + index], p);
|
||||
}
|
||||
|
||||
ivec2 textureSize(int index, int lod)
|
||||
{
|
||||
return textureSize(textures[uTextureIndex + index], lod);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue