Commit Graph

11 Commits

Author SHA1 Message Date
Allen Ray 6c717101a7
Merge branch 'master' into clipTris 2021-08-16 09:55:30 -04:00
Alexandru-Paul Copil bb0a0f485e Optimize *GLShader.Update() by allocating array before for loop 2021-07-09 10:44:48 +03:00
Alexandru-Paul Copil aae9927b58 Apply gofumpt and basic styling changes 2021-07-09 10:43:10 +03:00
Allen Ray 798c6c2a48 Adding new triangles type: TrianglesClipped 2021-06-21 10:29:53 -04:00
Allen Ray 926463aa6f #244 GLTriangle's fragment shader is used when rendered by the Canvas.
Allows for custom fragment shaders to be used after canvas.MakeTriangles.
2020-06-21 23:27:28 -04:00
Magnus c18b8f1c29
Added position as out variable from vertex shader.
Adding the position out form vertex shader makes us skip computation of position in the fragment shader based on gl_FragCoord.
2018-12-11 09:24:17 +01:00
Brandon f4edf628b1 standardized glsl variable naming 2018-10-07 08:33:37 -06:00
Brandon e9dfd22ffa pr 141 review #3 changes, see https://github.com/faiface/pixel/pull/141#pullrequestreview-162261776 2018-10-06 10:27:47 -06:00
Brandon fa10844351 pr 141 review #2 changes, see https://github.com/faiface/pixel/pull/141#pullrequestreview-162259357 2018-10-06 10:01:05 -06:00
Brandon a25a444cbf pr 141 review #1 changes, see https://github.com/faiface/pixel/pull/141#pullrequestreview-161208458 2018-10-03 13:02:10 -06:00
Brandon 45642083a2 renamed file shader.go to glshader.go 2018-10-03 09:37:10 -06:00