stevensona/shader-toy

[feature request] VFlip control for texture

Closed this issue · 3 comments

for example:

#iChannel0::FlipY false

to match the functionality on shadertoy:
image

thanks!

Can elaborate what this checkbox does? Does it really just vertically flip the texture?
If so I don't quite understand why this is necessary, shouldn't it be simple to just write a function that flips the texture coordinates on sampling? Or even just write 1.0 - uv.y
I hope you can clear my confusion :)

https://www.shadertoy.com/view/4sdfz8

Hi there,
for example, at line 17, fetch hash from texture to generate noise, if without this flip value, the result is wrong.
yes of course we can do something to avoid this option, but it's actually handy, it just matches the shadertoy function so easy to copy shader code from shadertoy into VSC to analyze, otherwise i have to add extra code and even edit the texture saved from shadertoy (flip in PS)....
this option i think controls the GL function glTexParameteri(gl.flipY, true/false).

thanks.

one year past, close as no reply.