Skip to content

Commit

Permalink
Improve glsl shader performance (#211)
Browse files Browse the repository at this point in the history
Most optimizations are done by abusing mathematical properties and
replacing slow on some hardware(e.g. Inetl) min and max with saturation.
For example dot product is in range [-1, 1], so `max(0, dot(...))` =
`sat(dot(...))`.
In places where this potentially can mess with HDR comments were added.
  • Loading branch information
uis246 authored Nov 8, 2024
1 parent ef5f75a commit 6803afa
Showing 1 changed file with 96 additions and 92 deletions.
Loading

0 comments on commit 6803afa

Please sign in to comment.