Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] VFlip control for texture #126

Closed
jcyuan opened this issue Dec 23, 2020 · 3 comments
Closed

[feature request] VFlip control for texture #126

jcyuan opened this issue Dec 23, 2020 · 3 comments

Comments

@jcyuan
Copy link

jcyuan commented Dec 23, 2020

for example:

#iChannel0::FlipY false

to match the functionality on shadertoy:
image

thanks!

@Malacath-92
Copy link
Collaborator

Malacath-92 commented Dec 25, 2020

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 :)

@jcyuan
Copy link
Author

jcyuan commented Dec 29, 2020

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.

@jcyuan
Copy link
Author

jcyuan commented Dec 20, 2021

one year past, close as no reply.

@jcyuan jcyuan closed this as completed Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants