Commit Graph

260 Commits

Author SHA1 Message Date
2b95e32b13 Basic texturing 2024-12-08 02:59:36 +03:00
7c8d67c909 Texture? 2024-12-08 02:44:44 +03:00
6b25722627 Pre-generate normals, for smooth look 2024-11-20 21:34:20 +03:00
8f1ade85a6 For a face, use vertex array instead of a tuple 2024-11-20 21:18:50 +03:00
c1b505356c Keep opacity independent of direction 2024-11-17 20:14:04 +03:00
30f02e4ff2 Custom alpha-to-coverage 2024-11-17 20:03:34 +03:00
f00f5f2f77 Depth + basic sample-to-coverage 2024-11-17 19:05:43 +03:00
03e91fac28 draw tube as translucent solid 2024-11-17 18:53:58 +03:00
dbdcdde80d Turn one fan a bit, for a much better scene 2024-11-17 01:14:09 +03:00
8e7a57761e Add object crossings 2024-11-17 01:02:51 +03:00
6da6944fa3 Fix a precision issue 2024-11-17 01:02:31 +03:00
122085b9ee use absolute camera 2024-11-17 01:02:03 +03:00
b6b95b1c94 Fix YPR order 2024-11-17 00:16:20 +03:00
7b0c09c3d7 Add custom cylinder 2024-11-16 23:52:18 +03:00
ecb112794d Move basic shapes to modules 2024-11-14 23:30:55 +03:00
e57692587a Make the tube actually cylindrical 2024-11-07 02:42:52 +03:00
401b10faae Add YCylinder 2024-11-07 02:42:29 +03:00
2652b21280 Use tests module 2024-11-07 01:40:08 +03:00
9fc5dfb2e1 Compactify test code 2024-11-07 01:39:29 +03:00
cc3d16cf2c oops, these were still 2D... 2024-11-07 00:40:08 +03:00
64d53cf72b There isn’t that much precision in f32... 2024-11-07 00:40:08 +03:00
cc39a249b7 scene: add vertical ray fan 2024-11-07 00:18:53 +03:00
df921c621e fmt: increase line length limit 2024-11-07 00:16:22 +03:00
694816bd6c Increase depth 2024-11-05 22:25:44 +03:00
3d7460ac14 Use sRGB
Anti-aliasing works better this way
2024-11-03 22:01:48 +03:00
3ab86973cc Allow(dead_code)
That function is too nice to remove
2024-09-28 13:30:39 +03:00
33906f51b3 Extract make_vec and make_mat into mathx 2024-09-28 13:30:26 +03:00
c1b7d5ea00 mesh display: allow switching perspective/orthographic in runtime 2024-09-28 13:22:23 +03:00
db50127cf5 Fix a few warnings 2024-09-28 12:59:00 +03:00
553823b65f Reduce visual noise 2024-09-28 12:33:22 +03:00
a29c17e295 Update controls 2024-09-28 12:33:15 +03:00
01331350e4 Finer grained traces in flat subregions 2024-09-28 12:27:46 +03:00
32a2995e7b Fix line width calculation
It was only correct at the screen center
2024-09-28 12:19:27 +03:00
f162a18107 Enable vsync 2024-09-28 12:10:15 +03:00
eb1bbee3eb Use best multisampling available 2024-09-26 20:08:59 +03:00
bf38462c78 Add FPS counter 2024-09-26 20:00:33 +03:00
45ed4dff90 Enable multisampling 2024-09-26 00:47:29 +03:00
ec6f2e3c57 Extract viewport 2024-09-26 00:29:33 +03:00
aa94681ab9 Extract line rendering 2024-09-25 23:53:29 +03:00
2e2c93792b Extract camera 2024-09-25 23:09:07 +03:00
d3d4048a5c Nice wide lines 2024-09-23 23:04:49 +03:00
b8f0ce0b68 Provide a tangent at each traced point 2024-09-23 22:24:43 +03:00
1d57ca8a93 Rotation-independent line width 2024-09-23 22:14:13 +03:00
dca80473d0 Crude wide lines 2024-09-23 22:02:38 +03:00
8736db19a3 Port to WGPU 2024-09-23 21:20:56 +03:00
7b90bbac65 Draw the tube better 2024-09-23 20:01:43 +03:00
df2134a8a5 Encapsulate keyboard handling 2024-09-23 19:31:53 +03:00
69e711811b Encapsulate camera location 2024-09-23 19:31:31 +03:00
d47b904905 Reduce controls to keyboard-only
Simplicity first!
2024-09-23 19:16:12 +03:00
24b1a07f28 Refactor out the keymap 2024-09-23 18:50:55 +03:00