This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Get rid of dependent texture reads #64
Comments
Three shaders have these kind of dependent texture reads: pattern, linepattern, linesdf. All three of these perform a modulus in order to wrap the patterns. I can think of two ways to remove the dependent reads:
I'm not seeing us implementing either approach. The complexity and downsides seem bigger than the benefits. |
This was referenced Jan 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Our line pattern shader performs dependent texture reads. The word "dependent" is slightly misleading, as it typically refers to using the result of one texture read as input to another texture read. However, in our case it refers to us performing lots of calculations before we use it as an input parameter to the texture read.
The text was updated successfully, but these errors were encountered: