Grant Sanderson
|
e10a752c00
|
Allow releasing of Textures
|
2021-10-15 08:52:37 -07:00 |
|
Grant Sanderson
|
d5a88d0fa4
|
Pass tuples and not arrays to uniforms
|
2021-08-26 11:44:24 -07:00 |
|
Grant Sanderson
|
c635f19f2a
|
Push pixel_coords_to_space_coords to Window
|
2021-08-24 11:26:43 -07:00 |
|
Grant Sanderson
|
be78f5257a
|
Ensure images used for textures are RGBA
|
2021-06-15 21:45:13 -07:00 |
|
Grant Sanderson
|
322f138490
|
Add CameraFrame.reorient for quicker changes to frame angle
|
2021-03-31 23:27:12 -07:00 |
|
Grant Sanderson
|
5a2a363a87
|
Some cleanup for interactive mobjects
|
2021-01-28 12:26:05 -08:00 |
|
Grant Sanderson
|
78ac18496d
|
Fix CameraFrame interpolation
|
2021-01-18 16:44:04 -08:00 |
|
Grant Sanderson
|
59af903f14
|
Reorganize the interaction between CameraFrame and shader perspective transforms, along with some keyboard interactions for panning
|
2021-01-18 16:39:29 -08:00 |
|
Grant Sanderson
|
d37de184d2
|
Set gamma properly
|
2021-01-15 09:27:51 -10:00 |
|
Grant Sanderson
|
b3335c65fb
|
Partial progress
|
2021-01-10 18:51:47 -08:00 |
|
Grant Sanderson
|
81e359d22e
|
Tie focal distance to camera fram height
|
2021-01-09 10:25:59 -08:00 |
|
Grant Sanderson
|
f47f848236
|
Change default focal distance as positioning function changes
|
2021-01-08 22:28:13 -08:00 |
|
Grant Sanderson
|
b13b94938a
|
Remove no-longer-needed hack for pixel_coords_to_space_coords
|
2021-01-06 12:46:46 -08:00 |
|
Grant Sanderson
|
148afc29aa
|
Change default number of samples for 3d camera
|
2021-01-03 12:04:05 -08:00 |
|
Grant Sanderson
|
d1c6b80622
|
Tiny change
|
2021-01-02 23:02:02 -08:00 |
|
Grant Sanderson
|
32b76bf448
|
Small move to DEFAULT_PIXEL_HEIGHT, etc. In theory these values shouldn't matter anymore, but it's nice to have some default there for the definition of Camera
|
2021-01-02 22:38:07 -08:00 |
|
Grant Sanderson
|
b64875fd55
|
Typo fix for primitive
|
2020-12-04 08:12:53 -08:00 |
|
Grant Sanderson
|
da972edfca
|
Change when camera shift happens
|
2020-11-24 13:31:21 -08:00 |
|
Grant Sanderson
|
61424dbfec
|
Factor out get_render_group_list
|
2020-06-29 18:25:56 -07:00 |
|
Grant Sanderson
|
2671817ae9
|
Refactor away from treating shader_info as a dictionary, and make it a proper type as ShaderWrapper. This also includes some cleanup in hos Camera renders
|
2020-06-29 18:17:18 -07:00 |
|
Grant Sanderson
|
2b3bd2bfce
|
Use an index buffer for shaders to save memory
|
2020-06-29 11:05:09 -07:00 |
|
Grant Sanderson
|
279f66ceaf
|
A little refactoring and performance improvement
|
2020-06-28 12:14:46 -07:00 |
|
Grant Sanderson
|
41fd6d4f4b
|
Simply reorders where some methods are defined
|
2020-06-28 10:05:27 -07:00 |
|
Grant Sanderson
|
6a735e49b8
|
Refresh rotation matrix after interpolation
|
2020-06-27 12:17:53 -07:00 |
|
Grant Sanderson
|
90db32ee55
|
Have camera_frame remember rotation matrix by default
|
2020-06-27 12:10:51 -07:00 |
|
Grant Sanderson
|
6ba1eae8f6
|
Use ctx.vertex_array instead of ctx.simple_vertex_array
|
2020-06-27 00:00:50 -07:00 |
|
Grant Sanderson
|
60e1c88eb4
|
Slight tweaks to how shader_info id is found and stored
|
2020-06-26 23:05:25 -07:00 |
|
Grant Sanderson
|
212cdbb4d2
|
Speed improvements. Camera saves vbo for static mobjects, data in shader_data_info is saved and concatenated in raw form
|
2020-06-26 19:29:34 -07:00 |
|
Grant Sanderson
|
bb66a7c977
|
Releases moderngl buffers after use
|
2020-06-18 16:25:26 -07:00 |
|
Grant Sanderson
|
6a458547c3
|
Bug fix
|
2020-06-15 12:01:05 -07:00 |
|
Grant Sanderson
|
9d772496dd
|
Removes the need to be able to recover shader_info from shader_id
|
2020-06-14 19:01:04 -07:00 |
|
Grant Sanderson
|
222b6d1220
|
Push depth test decision to the mobject level, as opposed to the camera
|
2020-06-14 17:41:47 -07:00 |
|
Grant Sanderson
|
61a3bd8102
|
Small change to make the ctx enable flag a little clearer
|
2020-06-13 15:20:17 -07:00 |
|
Grant Sanderson
|
429d63eebf
|
Add special methods for setting angles
|
2020-06-09 21:25:00 -07:00 |
|
Grant Sanderson
|
8a060dfa3f
|
Add axis_normalized option to quaternion_from_angle_axis
|
2020-06-09 20:40:36 -07:00 |
|
Grant Sanderson
|
5584521fb0
|
Change default focal distance
|
2020-06-09 17:59:03 -07:00 |
|
Grant Sanderson
|
7c4874bdad
|
Changed how focal_distance works
|
2020-06-09 17:12:52 -07:00 |
|
Grant Sanderson
|
b91284b4aa
|
Small shader fixes
|
2020-06-09 12:34:00 -07:00 |
|
Grant Sanderson
|
ccefbc0dea
|
Add is_fixed_in_frame uniform which allows mobjects to not get rotated by the camera
|
2020-06-08 20:27:07 -07:00 |
|
Grant Sanderson
|
5d34cee014
|
Move frame resizing to get_gl_Position so that the screen rotation matrix remains det 1
|
2020-06-08 17:55:41 -07:00 |
|
Grant Sanderson
|
bab809b9a6
|
Allow for passing shader uniforms from mobjects
|
2020-06-08 15:57:12 -07:00 |
|
Grant Sanderson
|
39230a805c
|
Better handling of textures, now letting multiple get passed in to a textured surface
|
2020-06-08 15:06:22 -07:00 |
|
Grant Sanderson
|
97304d9d86
|
Added multisampling to camera
|
2020-06-08 14:09:31 -07:00 |
|
Grant Sanderson
|
4968c7a8a1
|
Small note
|
2020-06-07 12:24:31 -07:00 |
|
Grant Sanderson
|
ba7a51931d
|
Add shadow, and pull out lighting information to Mobject
|
2020-06-06 16:55:56 -07:00 |
|
Grant Sanderson
|
a204e422a5
|
Get rid of do-nothing self.ctx.multisample line
|
2020-06-05 13:23:38 -07:00 |
|
Grant Sanderson
|
cacfe67fe1
|
ParametricSurface replaces the role of SurfaceMobject, and instead of tracking normals infinitesimal nudges are tracked
|
2020-06-05 11:12:52 -07:00 |
|
Grant Sanderson
|
4c33b99d39
|
Very rudimentary 3dSurface type
|
2020-06-04 15:41:20 -07:00 |
|
Grant Sanderson
|
a232c32756
|
Changed camera frame from working in quaternions to working in Euler angles. For shame.
|
2020-06-03 10:38:57 -07:00 |
|
Grant Sanderson
|
38cc0a7174
|
Added glossiness to VMobjects
|
2020-06-02 16:18:44 -07:00 |
|