Grant Sanderson
72472c5836
Refactor in terms of a ShaderWrapper object
2020-07-22 18:21:42 -07:00
Grant Sanderson
8af879236e
Make gloss and shadow uniforms
2020-06-28 12:13:25 -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
be904774dd
Treat joint_type as a uniform
2020-06-08 16:03:08 -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
596b7c0112
Get rid of unneeded import
2020-06-08 14:09:48 -07:00
Grant Sanderson
ba7a51931d
Add shadow, and pull out lighting information to Mobject
2020-06-06 16:55:56 -07:00
Grant Sanderson
7c1f560ae2
Change fallback unit normal to be in negative y-direction
2020-06-06 10:57:07 -07:00
Grant Sanderson
98ac6a06f2
Small cleanup
2020-06-06 10:56:46 -07:00
Grant Sanderson
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
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
2b931dc7a2
Improvements to surfaces, with textured surfaces available
2020-06-04 17:17:38 -07:00
Grant Sanderson
4c33b99d39
Very rudimentary 3dSurface type
2020-06-04 15:41:20 -07:00
Grant Sanderson
e4419204cb
Got stroke shaders working in 3d
2020-06-04 11:29:36 -07:00
Grant Sanderson
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
Grant Sanderson
38cc0a7174
Added glossiness to VMobjects
2020-06-02 16:18:44 -07:00
Grant Sanderson
725a7e3121
Enable 3d rotations
2020-06-01 16:21:18 -07:00
Grant Sanderson
e882356264
Small cleanups to the shader files
2020-05-31 17:31:03 -07:00
Grant Sanderson
00dcc14df1
Fixed the random-dimples-on-zeros bug while fixing up the fill shaders
2020-05-31 17:02:05 -07:00
kolibril13
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
Grant Sanderson
673b85f129
Prep quadratic bezier shaders to work in 3d
2020-02-16 10:53:16 -08:00
Grant Sanderson
1a0b0e748c
Fixed pixel_coords_to_space_coords
2020-02-14 10:52:39 -08:00
Grant Sanderson
e5d8f83dbf
Implemented ImageMobject with shaders
2020-02-13 10:39:26 -08:00
Grant Sanderson
3f0cc56665
Separate out the point_to_gl_Position function, which needs to be updated later
2020-02-12 18:05:22 -08:00
Grant Sanderson
50c7dd7d48
Don't have fill shader use quick (flawed) sdf
2020-02-12 13:24:15 -08:00
Grant Sanderson
cb31ce3049
Temporarily(?) allow stroke shader to sometimes cross triangles so as to avoid other artifacts
2020-02-12 12:51:36 -08:00
Grant Sanderson
15e3178721
Incorporate frame_center in translation to gl_Position
2020-02-11 19:49:54 -08:00
Grant Sanderson
9b3d294464
Change fill shaders to compute orientation inside
2020-02-07 09:31:57 -08:00
Grant Sanderson
0a82229ac1
Have stroke/fill vert shaders take in 3d points
2020-02-05 14:45:42 -08:00
Grant Sanderson
8638f7303a
Added quadratic bezier shader files
2020-02-03 10:52:39 -08:00