Commit graph

30 commits

Author SHA1 Message Date
Richard Davey
63ac456c45 Flag swap 2019-06-24 14:42:34 +01:00
Richard Davey
a3763d1468 Added setSampler2DBuffer method and willRender override. 2019-06-24 12:31:47 +01:00
Richard Davey
96f96a7258 Opps! Clear the texture :) 2019-06-21 17:20:15 +01:00
Richard Davey
9d94e35e91 If a GLTexture is given as a sampler2D it will extract the textureData from it correctly 2019-06-21 16:35:31 +01:00
Richard Davey
22b107b903 Added setRenderToTexture method and supporting properties 2019-06-21 16:08:14 +01:00
Richard Davey
e23a86d45a The default BaseShader vertex shader has a new uniform uResolution which is set during the Shader init and load to be the size of the Game Object to which the shader is bound. 2019-05-16 17:44:59 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
a6341a97a8 Fixed Types references 2019-05-09 15:32:53 +01:00
Richard Davey
4092056e84 Fixed namespace 2019-05-09 11:05:42 +01:00
Richard Davey
abccac28f8 Can pass in either a BaseShader or a string 2019-05-01 17:04:53 +01:00
Richard Davey
b22f5ce5fd Improved jsdocs 2019-05-01 12:59:05 +01:00
Richard Davey
4edd77275a Removed funcmap and moved to renderer. Finished method jsdocs. 2019-05-01 12:30:09 +01:00
Richard Davey
de7c804c47 Shaders can now easily handle sampler2D uniforms 2019-05-01 00:05:52 +01:00
Richard Davey
8484f33c18 Handle invalid shader keys gracefully 2019-04-30 19:56:03 +01:00
Richard Davey
272fbfcd7a Improved jsdocs, finished splitting up render process 2019-04-30 19:43:50 +01:00
Richard Davey
38d8ae7d68 Uniforms properly applied 2019-04-30 19:11:29 +01:00
Richard Davey
e5d944b977 Updating Shader Game Object to use new Shader class 2019-04-30 17:11:55 +01:00
Richard Davey
3c655bff3e Improved jsdocs 2019-04-30 11:08:34 +01:00
Richard Davey
14ae8ecf19 Added NOOP 2019-04-29 17:14:05 +01:00
Richard Davey
e07248a403 Use proper elapsed time for the shader 2019-04-26 19:13:45 +01:00
Richard Davey
8620e2303d Added setPointer 2019-04-26 00:56:53 +01:00
Richard Davey
4d16f21c20 re-init uniforms if setShader 2019-04-25 17:13:31 +01:00
Richard Davey
2c4d0d9fd3 Uniforms are now synced properly and attribute is hard coded 2019-04-25 16:57:12 +01:00
Richard Davey
d849031195 Y oh Y :) 2019-04-25 15:08:32 +01:00
Richard Davey
a0ef6e9d1b Added default shader 2019-04-25 15:07:46 +01:00
Richard Davey
27d6bd544f Drop the modelMatrix, it's not needed for this GO. Also only change vertexView elements that need changing. 2019-04-25 14:21:33 +01:00
Richard Davey
5449f7b51d Skip blendMode and add setShader method 2019-04-25 14:03:50 +01:00
Richard Davey
f37a61de27 Shader now using viewLoad2D instead and accounting for origin 2019-04-25 12:12:49 +01:00
Richard Davey
ba8d1adbbb Removing use of Shader pipeline 2019-04-25 11:30:23 +01:00
Richard Davey
7d74425491 Added new Shader Game Object 2019-04-25 03:15:51 +01:00