Commit Graph

477 Commits

Author SHA1 Message Date
benfry
b4b153b7dc fighting with Android quirks in the latest Google SDK 2012-03-23 00:39:33 +00:00
codeanticode
9ca741bedd Fixed calculation of texture matrix, some tweaks in beginDraw() 2012-03-22 20:48:40 +00:00
codeanticode
e0c085413d Revised clear-buffer logic 2012-03-22 17:56:22 +00:00
codeanticode
f1338a4472 FBO-based onscreen rendering for incremental drawing on Android is working again, added some more PGL utilities. 2012-03-22 17:30:36 +00:00
codeanticode
9e71ae0f05 Sync P3D on Android 2012-03-20 14:35:03 +00:00
codeanticode
3a4dfb3203 endPGL in android as well 2012-02-14 23:44:00 +00:00
codeanticode
7d8ecca2d6 glFlush() before endOnscreenDraw() call 2012-02-14 19:06:14 +00:00
codeanticode
2668db6ce6 GLU source files 2012-02-13 21:31:29 +00:00
codeanticode
929e9229c9 GLU tessellator for Android, some corrections in examples 2012-02-13 21:29:17 +00:00
codeanticode
e5e6dcac22 Ported shader improvements to Android 2012-02-13 06:47:44 +00:00
codeanticode
ff0b8e7877 added shader.setTexture() call in PShape3D.renderFill() 2012-02-12 21:09:16 +00:00
codeanticode
8b72e8e52a Moved default material properties from PGraphics to PGraphicsOpenGL/Android3D 2012-02-12 16:19:27 +00:00
codeanticode
51ec62ff1e Default specular light is 0. 2012-02-12 15:58:15 +00:00
codeanticode
2bae5ffecb Added scale and offset uniforms to tex shader to properly handle npot and inverted textures 2012-02-12 15:33:33 +00:00
codeanticode
5ea73a1c41 Ported GLSL renderering from PGraphicsAndroid3D to PGraphicsOpenGL, several fixes 2012-02-12 01:22:42 +00:00
codeanticode
c02ab789fd Correct light direction sign in shader, fixing auto-normal calculation 2012-02-11 05:27:53 +00:00
codeanticode
b2270b93ef Fixed a couple of bugs in the calculation of the normal matrix 2012-02-11 02:18:24 +00:00
codeanticode
307cca4707 Reset the inverse of the modelview in resetMatrix(). 2012-02-11 01:24:38 +00:00
codeanticode
76dfbe848f Another missing normalization 2012-02-10 23:22:21 +00:00
codeanticode
bf20d8cd2f Updated full vertex shader with the last changes from the lit shader. 2012-02-10 22:37:22 +00:00
codeanticode
58ddc28f4e Combined falloff and spot parameters into vec3 and vec2 uniforms 2012-02-10 22:35:16 +00:00
codeanticode
801627f089 Added some missing normalizations in light calculation 2012-02-10 22:09:30 +00:00
codeanticode
5aaf47636b Light ambient, diffuse and specular only have rgb components 2012-02-10 19:48:23 +00:00
codeanticode
406c4d5778 Applying normal matrix to normal vectors in tessellator routines 2012-02-10 19:39:40 +00:00
codeanticode
b421c2f7d9 Some light debugging. Diffuse working, still need to fix normal calc 2012-02-10 16:41:18 +00:00
codeanticode
e4b2edf8cf Fixed index update in renderFill method 2012-02-09 21:46:58 +00:00
codeanticode
1793681ec1 Removed calls to glEnable(target), fixed coloring of fonts 2012-02-09 19:54:14 +00:00
codeanticode
1b869c5d61 Simple fix to lighting code in vertex shaders 2012-02-08 23:58:33 +00:00
codeanticode
4bd0411edc Corrected gl matrix update when starting shaders 2012-02-08 23:42:13 +00:00
codeanticode
ae39e8e9a3 Fixed attribute offset in PShape3D 2012-02-08 23:31:05 +00:00
codeanticode
4e247f4fa1 Handle of missing glBlendEquation, some fixes for int colors in PShape3D 2012-02-08 22:46:29 +00:00
codeanticode
4a22bb3bdd Loading shader source from URLs, fixed color normalization 2012-02-08 21:51:54 +00:00
codeanticode
325e97c1b3 Setting color attributes as unsigned byte 2012-02-07 23:46:58 +00:00
codeanticode
99218832ee Color arrays now are int 2012-02-07 23:45:06 +00:00
codeanticode
3c9efc578e Removed point normals 2012-02-07 22:35:08 +00:00
codeanticode
e9eb82641a Removed line normals 2012-02-07 22:29:09 +00:00
codeanticode
f1ca6cc9b5 Renamed line and point attributes 2012-02-07 22:21:24 +00:00
codeanticode
d0f78f2db8 Adding rest of fill shaders 2012-02-07 22:12:46 +00:00
codeanticode
e7fb2ae6ca Renaming fill shaders. 2012-02-07 22:04:14 +00:00
codeanticode
28174ed71b All render methods re-implemented with fill, line and point shaders. 2012-02-07 22:02:48 +00:00
codeanticode
09c9151a00 Completing shader classes 2012-02-07 16:51:08 +00:00
codeanticode
2f9fd105fd more shader classes 2012-02-07 07:59:18 +00:00
codeanticode
1c991da6c6 binding material buffers in render methods 2012-02-07 07:22:24 +00:00
codeanticode
a3787d3b58 PGL layer just exposes gl functions and constants 2012-02-06 23:30:08 +00:00
codeanticode
294c96e2c8 More material properties handling 2012-02-06 15:38:29 +00:00
codeanticode
39ea83133d Adding array-handling code for the new material arrays, and interpolation in tessellator. 2012-02-05 23:26:16 +00:00
codeanticode
1d4b7097a7 Putting back in emissive, specular, ambient, etc. 2012-02-04 03:27:49 +00:00
codeanticode
7b1766ef29 Lighting code in vertex shader compiles 2012-02-03 23:16:20 +00:00
codeanticode
b8cbfb0664 Reorganizing logic of light variables 2012-02-03 16:24:14 +00:00
codeanticode
085385f086 Testing light uniforms 2012-02-03 00:54:53 +00:00