Hello dear friends
hope you doing well
I have 2 questions about shaders and SparkSL
- How can we convert iChannelResolution to SparkSL?
I mean i know we should type texture.size but there are some cases that the number inside iChannelResolution brackets is not 0 like this picture below, should we still replace it with texture.size?
and .size should be typed like that or should we replace size with .xy?
- What is the difference between these 3 types of uv sampling?
texture(iChannel0,uv) | textureLod(iChannel3,uv,0.) | (textureSize(iChannel1,0)
we know the first one is simply can be converted like this: iChannel0.sample(uv) , but how about the other two?
Thank you so much for your help.