Richard Davey
bf02aaa7ee
Update WebGLTextureCompression.js
2021-10-06 18:48:04 +01:00
Richard Davey
01beb898b3
The WebGLRenderer.createTextureFromSource
method now accepts the CompressedTextureData
data objects and creates WebGL textures from them.
2021-10-06 18:47:35 +01:00
Richard Davey
234ba03b35
Update WebGLRenderer.js
2021-10-05 18:36:50 +01:00
Richard Davey
f376958ca1
Added getCompressedTextureName method
2021-10-05 18:30:17 +01:00
Richard Davey
7bdb9d672f
Added supportsCompressedTexture method
2021-10-05 17:04:44 +01:00
Richard Davey
5a941ed509
Expanded to support all formats
2021-10-05 16:48:51 +01:00
Richard Davey
573dd3a14d
Added getCompressedTextures method
2021-10-05 16:48:42 +01:00
Richard Davey
b968e46ee2
The Multi Pipeline now uses highp float
precision by default, instead of mediump
. This fixes issues with strange blue 'spots' appearing under WebGL on some Android devices. Fix #5751 #5659 #5655
2021-09-28 15:56:54 +01:00
Richard Davey
6cd7d6ce79
The Camera will now emit PRE_RENDER
and POST_RENDER
events under the Canvas Renderer. Fix #5729
2021-09-28 15:39:47 +01:00
Richard Davey
47bbde0e4b
With roundPixels
set to true in the game or camera config, Sprites will no longer render at sub-pixel positions under CANVAS. Fix #5774
2021-09-28 15:34:46 +01:00
Richard Davey
0ab2534306
Update PipelineManager.js
2021-09-21 14:53:18 +01:00
samme
8c2b1a7e35
Fix snapshotCanvas
...
Fixes #5792
2021-07-28 10:29:15 -07:00
Richard Davey
78b9215e2f
Added the missing WebGLPipelineUniformsConfig
type def. Fix #5718 (thanks @PhaserEditor2D)
2021-05-26 15:38:51 +01:00
Richard Davey
3a6e82a042
The WebGLShader.set1fv
, set2fv
, set3fv
, set4fv
, set1iv
, set2iv
, set3iv
, set4iv
, setMatrix2fv
, setMatrix3fv
and setMatrix4fv
methods no longer try to do array comparisons when setting the uniforms, but sets them directly. Fix #5670
2021-05-24 17:24:03 +01:00
Benjamin Magalhaes
562a05a642
Remove unused WebGLPipelineUniformsConfig
2021-05-13 15:21:35 +02:00
Benjamin Magalhaes
aa97541c3f
Fix WebGLPipelineAttributeConfig documentation
2021-05-13 13:31:18 +02:00
Richard Davey
9879a1062e
Merged the Graphics Pipeline functions into the MultiPipeline
2021-04-16 18:18:42 +01:00
Vladislav Forsh
670a66c697
Improve types for WebGL texture compression support
...
(cherry picked from commit 5626acffec17c6b4d66c78b8e0aa52e5cfcd8478)
2021-04-13 13:19:24 +03:00
Richard Davey
e954547cf7
The PipelineManager.rebind
method will now flag all pipelines as glReset = true
, so they know to fully rebind the next time they are invoked.
2021-03-01 17:50:40 +00:00
Richard Davey
8d7519b84d
* WebGLPipeline.glReset
is a new boolean property that keeps track of when the GL Context was last reset by the Pipeline Manager. It then redirects calls to bind
to rebind
instead to restore the pipeline state.
...
The `WebGLPipeline.rebind` method now accepts an optional parameter `currentShader`. If provided it will set the current shader to be this after the pipeline reset is complete.
2021-03-01 17:50:39 +00:00
Richard Davey
a95c34ce92
WebGLRenderer.deleteTexture
will now run resetTextures(true)
first, incase the requested texture to be deleted is currently bound. Previously, it would delete the texture and then reset them.
2021-02-17 13:10:10 +00:00
Richard Davey
3deb6672aa
RenderTarget.resize
will now Math.floor
the scaled width and height as well as ensure they're not <= 0 which causes Framebuffer status: Incomplete Attachment
errors. Fix #5563
2021-02-16 12:32:55 +00:00
Richard Davey
dff17f52e8
The LightPipeline
now only calls batchSprite
, batchTexture
and batchTextureFrame
if the Scene Lights Manager is active. Fix #5522
2021-02-04 16:38:09 +00:00
Richard Davey
5176fcfacd
The Canvas Renderer will no longer run a fillRect
if clearBeforeRender
is false
in the Game Config.
2021-02-04 16:06:47 +00:00
Richard Davey
c5cbb413d2
You can now set the boolean preserveDrawingBuffer
in the Game Config (either directly, or in the Render Config). This is passed to the WebGL context during creation and controls if the buffers are automatically cleared each frame or not. The default is to clear them. Set to true
to retain them.
2021-02-04 15:58:41 +00:00
Richard Davey
a765b7edfc
WebGLRenderer.isTextureClean
is a new boolean property that tracks of all of the multi-textures are in a clean 'default' state, to avoid lots of gl texture binds and activations during a Scene restart or destruction process.
2021-01-04 15:49:39 +00:00
Richard Davey
e7aff5d0dc
Data type fix
2020-12-16 10:25:27 +00:00
Richard Davey
6912124780
Fixed docs
2020-12-15 16:05:34 +00:00
Richard Davey
67b3f812f8
JSDocs
2020-12-14 13:50:50 +00:00
Richard Davey
00ec07d67f
JSDoc update
2020-12-14 13:36:51 +00:00
Richard Davey
cbe1a3219a
JSDoc improvements
2020-12-14 13:33:42 +00:00
Richard Davey
675e83e539
Fix inverted RenderTexture snapshot. Fix #5445
2020-12-14 10:52:05 +00:00
Richard Davey
5a532da7bf
Disable scissor before clearing.
2020-12-14 09:08:28 +00:00
Richard Davey
166c333d13
Should rebind shaders too
2020-12-11 12:41:48 +00:00
Richard Davey
519afd031b
Fixed Camera Fade Effect check. Fix #5438
2020-12-11 11:29:16 +00:00
Richard Davey
69f4a6d8fb
Added getAspectRatio method
2020-12-11 11:05:20 +00:00
Richard Davey
e4be6dbc90
Fixed JSDocs and removed unused method
2020-12-11 10:33:53 +00:00
Richard Davey
11990bccb4
Added global projection matrix back and removed events
2020-12-11 10:26:15 +00:00
Richard Davey
0d67548343
Compare projection matrix with renderer
2020-12-11 10:24:47 +00:00
Richard Davey
8839007e0f
Update the projection matrix on bind
2020-12-11 10:24:27 +00:00
Richard Davey
dbae58368d
Removed event as no longer required
2020-12-11 10:24:15 +00:00
Richard Davey
27da1dfa4b
Clear just the color buffer
2020-12-11 10:24:05 +00:00
Richard Davey
7acbd816f3
Added new Projection Update event and respond to it
2020-12-10 18:07:25 +00:00
Richard Davey
4f5cedde03
Better method name. Reset once done.
2020-12-10 16:58:34 +00:00
Richard Davey
f1dbea4ead
beginCapture can accept dimensions. Reset scissor enables even if same size. Always set drawing height.
2020-12-10 16:55:00 +00:00
Richard Davey
21b968363c
Don't resize if already same size. Better binding handling.
2020-12-10 16:53:48 +00:00
Richard Davey
2be3b7aa59
Fixed typos
2020-12-10 16:53:26 +00:00
Richard Davey
197aa9df0f
Update WebGLRenderer.js
2020-12-09 15:55:02 +00:00
Richard Davey
edbef4a04a
Added eraseMode parameter
2020-12-09 15:54:56 +00:00
Richard Davey
16d4d11939
Final fixes to blitFrame
2020-12-09 15:20:09 +00:00