xebra
1c604d5b60
[spline/bezier]Put the control points stuffs all in one structure.
2018-10-07 23:54:19 +09:00
xebra
66833513c0
[spline/bezier]Modify the weights cache variables to a template variable.
2018-10-07 23:54:18 +09:00
xebra
c4a8d80b61
[spline/bezier]Put the output buffers all in one structure.
2018-10-07 23:54:17 +09:00
xebra
a241058d7b
[spline/bezier]Improve TemplateParameterDispatcher class macro to a real class.
2018-10-07 23:54:16 +09:00
xebra
3d07bca010
[spline/bezier]Fix spline weights calculation and get rid of using next patch position in hwtess.
...
# Conflicts:
# GPU/Directx9/VertexShaderGeneratorDX9.cpp
# GPU/GLES/VertexShaderGeneratorGLES.cpp
# GPU/Vulkan/VertexShaderGeneratorVulkan.cpp
2018-10-07 23:54:07 +09:00
xebra
3c0fb44f2e
[spline/bezier]Improve hwtess to use cached weights.
2018-10-07 23:54:05 +09:00
xebra
e5976f588b
[spline/bezier]Unify software tessellation of bezier and spline.
...
# Conflicts:
# GPU/Common/SplineCommon.cpp
2018-10-07 23:54:03 +09:00
xebra
0cb63318bc
[spline/bezier]Fix to build for GE debugger.
2018-10-07 23:54:00 +09:00
xebra
da1176f2b3
[spline/bezier]Improve template parameter dispatch method.
...
# Conflicts:
# GPU/Common/SplineCommon.h
2018-10-07 23:53:58 +09:00
xebra
b11f9e6acf
[spline/bezier]Fix normal generation flag and some minor stuffs.
2018-10-07 23:53:56 +09:00
xebra
a340390996
[spline/bezier]Move bezier patch loops into the function and pre-convert control-points.
2018-10-07 23:53:44 +09:00
xebra
c8e45ae4bf
[spline/bezier]Use real tessellation in low-quality with "fixed to 2" tessellation factor.
...
# Conflicts:
# GPU/Common/SplineCommon.cpp
2018-10-07 23:53:42 +09:00
xebra
36ed61d08d
[spline/bezier]Pre-convert control-points for the accumulation of SIMD optimization, and avoid conversion in hot loops.
...
# Conflicts:
# GPU/Common/SplineCommon.cpp
# GPU/Common/SplineCommon.h
2018-10-07 23:53:42 +09:00
Unknown W. Brackets
2a13a66e18
GPU: Use hw tess only for hw transform.
...
This may be needed if we start using software for points/lines.
2018-06-28 19:47:33 -07:00
Unknown W. Brackets
9aad4dc848
GE Debugger: Cleaned repetition in spline preview.
2018-06-06 05:59:14 -07:00
Unknown W. Brackets
1829902171
GE Debugger: Show bezier/spline in preview.
...
Ignoring some things about normals and colors since they don't matter.
2018-06-06 05:59:14 -07:00
Henrik Rydgård
6a1fa728d8
Remove Globals.h
2017-08-31 17:15:22 +02:00
xebra
56f80ace90
[spline/bezier]Unify the word "tesselate" to "tessellate".
2017-03-09 18:04:16 +09:00
Unknown W. Brackets
555c76d439
Use bernstein for texcoord interpolation too.
...
This also closely matches hardware.
2016-04-09 22:14:15 -07:00
Unknown W. Brackets
2bafba3909
Interpolate bezier patch colors using bernstein.
...
This closely matches hardware (some color values seem to be off by one.)
See #7525 .
2016-04-09 21:41:49 -07:00
Henrik Rydgard
38a31fbd8b
Get rid of more uses of gstate from SplineCommon
2015-07-29 12:04:52 +02:00
Henrik Rydgard
53f062b7b2
refactor: Remove some uses of gstate from SplineCommon and a fex texcache functions
2015-07-29 11:40:45 +02:00
Unknown W. Brackets
5ee062c681
Try to optimize bezier color sampling.
2015-04-18 12:47:21 -07:00
Henrik Rydgard
033798c796
Expand spline data into a separate buffer. Prevent overflowing it by reducing the size of spline draws if necessary (but shouldn't really happen).
...
Might help #7386
2015-01-29 16:04:00 +01:00
Unknown W. Brackets
7ed67ad066
Use floats and SSE for spline colors.
2014-12-13 10:36:09 -08:00
xebra
43e3028add
[spline/bezier]Writing vertices to the buffer directly.
2014-12-14 01:08:00 +09:00
Henrik Rydgard
02a89306d1
Warning fixes, sprintf->snprintf
2014-09-13 23:51:07 +02:00
Henrik Rydgard
a4ae0f951a
Move spline generation to SplineCommon, make SplineDX9.cpp identical to Spline.cpp (merge later somehow)
2014-09-13 15:13:34 +02:00
Unknown W. Brackets
6630e45eff
Just add a packed version of Vec3f.
...
This way we can have it aligned to memory where needed. I think it'd be
better to avoid this if possible so that we can actually vectorize
spline/etc. code.
Fixes #5673 .
2014-03-17 06:59:40 -07:00
Henrik Rydgard
4cba4efbba
Try to fix scaling of generated UV texcoords on splines.
2013-09-24 14:14:05 +02:00