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

Optimize texture Lookup #1

Open
JohannesDeml opened this issue Mar 2, 2019 · 0 comments
Open

Optimize texture Lookup #1

JohannesDeml opened this issue Mar 2, 2019 · 0 comments

Comments

@JohannesDeml
Copy link

JohannesDeml commented Mar 2, 2019

Hey there,

Just took a quick look at the repo. I think you could get rid of the lerped two texture lookups by using tex2dlod instead of tex2d. There you can define your own lod/mipmap level without being bound to the uv value change from 0 to 1. The graph would look like this:

image

It does work without problems, but the mipmap level in the screenshot would stay the same. Maybe we could approximate the mipmap level with ddx from the world position value?

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

1 participant