slang-shaders/crt/ray_traced_curvature.slangp
fishcu 693c632bdd
Add ray traced curvature shader (#604)
* Ray-sphere intersection

* Implement spherical mapping with AA; Found mip-mapping bug

* Implement screen tilt

* Implement camera offset with tilt

* Clean up code a bit

* Implement perfect zoom; tweak params

* Add zero curvature

* Implement rounded corner

* Add aspect ratio forcing; Add bilinear filtering compile time switch

* Make rounded corner AA more generous

* Implement cylinder shape

* Implement ortho view

* Implement proper trilinear filtering

* Add LOD bias option

* Better sampling

* Initial cleanup

* Apply simplification that curvature_o = 0

* Compress code; Replace shape branching with multiplication

* Move stuff to the vert shader

* Inline update_frustum; Simplify cyl_ax = plane_v

* Separate out vertex shader

* Separate out ray tracing part of frag shader

* Make hq preset default

* Rename to rt curvature; Fix curv = 0 bug

* Fix rotated games; Finalize simplifications and comments

* Move to CRT folder; Add append preset

* Longer comment

* Add additional runtime switch for reducing aliasing when appending
2024-06-14 17:48:23 -05:00

11 lines
199 B
Plaintext

shaders = 2
shader0 = ../stock.slang
filter_linear0 = false
scale_type0 = source
shader1 = shaders/rt_curvature/rt_curvature.slang
filter_linear1 = true
scale_type1 = viewport
mipmap_input1 = true