8d14b66583
Fix previous commit
2021-01-10 08:38:47 -08:00
92b0953081
Move around where colormap code lives
2021-01-10 08:35:06 -08:00
e98ebfe9e1
Rename add_light -> finalize_color and leave room for other color manipulations
2021-01-09 22:11:38 -08:00
fdcc8d4257
Add ability to manipulate a mobjects shader code from python, and in particular to give it a coloring function, e.g. with Mobject.set_color_by_xyz_func
2021-01-09 18:52:54 -08:00
677d609870
Tiny chantges
2021-01-09 10:30:42 -08:00
a429a146c7
Fix how stroke is scaled for perspective
2021-01-09 10:30:11 -08:00
ac4755459a
Clamp perspective_scale_factor
2021-01-09 10:29:45 -08:00
632c35daef
Fix bugs in stroke shader for 3d scenes
2021-01-08 22:28:34 -08:00
7b8677fd6c
Push all mention of the #INSERT convention to a note in the insert file
2021-01-07 16:16:20 -08:00
065df65cf1
Reorganize how shader files sit in the shaders folder
2021-01-05 23:14:16 -08:00
bfa36a7659
Discard frag shader outside dot radius
2021-01-05 09:57:18 -08:00
a4ea4791e7
Added DotCloud type
2021-01-04 13:26:58 -08:00
c87b2e272b
Tiny change
2021-01-04 13:26:14 -08:00
72472c5836
Refactor in terms of a ShaderWrapper object
2020-07-22 18:21:42 -07:00
8af879236e
Make gloss and shadow uniforms
2020-06-28 12:13:25 -07:00
7c4874bdad
Changed how focal_distance works
2020-06-09 17:12:52 -07:00
b91284b4aa
Small shader fixes
2020-06-09 12:34:00 -07:00
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
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
be904774dd
Treat joint_type as a uniform
2020-06-08 16:03:08 -07:00
bab809b9a6
Allow for passing shader uniforms from mobjects
2020-06-08 15:57:12 -07:00
39230a805c
Better handling of textures, now letting multiple get passed in to a textured surface
2020-06-08 15:06:22 -07:00
596b7c0112
Get rid of unneeded import
2020-06-08 14:09:48 -07:00
ba7a51931d
Add shadow, and pull out lighting information to Mobject
2020-06-06 16:55:56 -07:00
7c1f560ae2
Change fallback unit normal to be in negative y-direction
2020-06-06 10:57:07 -07:00
98ac6a06f2
Small cleanup
2020-06-06 10:56:46 -07:00
274ebe7a52
Change stroke shader to effectively project down to a flat plane before drawing, but to remember z information via gl_Position and lighting.
2020-06-06 09:26:18 -07:00
cacfe67fe1
ParametricSurface replaces the role of SurfaceMobject, and instead of tracking normals infinitesimal nudges are tracked
2020-06-05 11:12:52 -07:00
2b931dc7a2
Improvements to surfaces, with textured surfaces available
2020-06-04 17:17:38 -07:00
4c33b99d39
Very rudimentary 3dSurface type
2020-06-04 15:41:20 -07:00
e4419204cb
Got stroke shaders working in 3d
2020-06-04 11:29:36 -07:00
23bbdc63ba
Fix up fill shaders to work when being viewed from different orientations, along with several other little bugs
2020-06-03 17:10:33 -07:00
38cc0a7174
Added glossiness to VMobjects
2020-06-02 16:18:44 -07:00
725a7e3121
Enable 3d rotations
2020-06-01 16:21:18 -07:00
e882356264
Small cleanups to the shader files
2020-05-31 17:31:03 -07:00
00dcc14df1
Fixed the random-dimples-on-zeros bug while fixing up the fill shaders
2020-05-31 17:02:05 -07:00
6eabbe943b
Changed -1 to -1.0 for broader GPU suppot.
...
Some GLSL compilers are more sensitive to types than others. With this fix, my Intel HD Graphics 5500 (Broadwell GT2) gives no error on this script anymore.
2020-03-30 20:26:06 +02:00
673b85f129
Prep quadratic bezier shaders to work in 3d
2020-02-16 10:53:16 -08:00
1a0b0e748c
Fixed pixel_coords_to_space_coords
2020-02-14 10:52:39 -08:00
e5d8f83dbf
Implemented ImageMobject with shaders
2020-02-13 10:39:26 -08:00
3f0cc56665
Separate out the point_to_gl_Position function, which needs to be updated later
2020-02-12 18:05:22 -08:00
50c7dd7d48
Don't have fill shader use quick (flawed) sdf
2020-02-12 13:24:15 -08:00
cb31ce3049
Temporarily(?) allow stroke shader to sometimes cross triangles so as to avoid other artifacts
2020-02-12 12:51:36 -08:00
15e3178721
Incorporate frame_center in translation to gl_Position
2020-02-11 19:49:54 -08:00
9b3d294464
Change fill shaders to compute orientation inside
2020-02-07 09:31:57 -08:00
0a82229ac1
Have stroke/fill vert shaders take in 3d points
2020-02-05 14:45:42 -08:00
8638f7303a
Added quadratic bezier shader files
2020-02-03 10:52:39 -08:00