mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 00:21:04 +00:00
Update CHANGELOG.md
This commit is contained in:
parent
a3763d1468
commit
45bfaeacfb
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
### New Features
|
### New Features
|
||||||
|
|
||||||
* `Shader.setRenderToTexture` is a new method that will redirect the Shader to render to its own framebuffer / WebGLTexture instead of to the display list. This allows you to use the output of the shader as an input for another shader, by mapping a sampler2D uniform to it. It also allows you to save the Shader to the Texture Manager, allowing you to use it as a texture for any other texture based Game Object such as a Sprite.
|
* `Shader.setRenderToTexture` is a new method that will redirect the Shader to render to its own framebuffer / WebGLTexture instead of to the display list. This allows you to use the output of the shader as an input for another shader, by mapping a sampler2D uniform to it. It also allows you to save the Shader to the Texture Manager, allowing you to use it as a texture for any other texture based Game Object such as a Sprite.
|
||||||
|
* `Shader.setSampler2DBuffer` is a new method that allows you to pass a WebGLTexture directly into a Shader as a sampler2D uniform, such as when linking shaders together as buffers for each other.
|
||||||
* `Shader.renderToTexture` is a new property flag that is set if you set the Shader to render to a texture.
|
* `Shader.renderToTexture` is a new property flag that is set if you set the Shader to render to a texture.
|
||||||
* `Shader.framebuffer` is a new property that contains a WebGLFramebuffer reference which is set if you set the Shader to render to a texture.
|
* `Shader.framebuffer` is a new property that contains a WebGLFramebuffer reference which is set if you set the Shader to render to a texture.
|
||||||
* `Shader.glTexture` is a new property that contains a WebGLTexture reference which is set if you set the Shader to render to a texture.
|
* `Shader.glTexture` is a new property that contains a WebGLTexture reference which is set if you set the Shader to render to a texture.
|
||||||
|
|
Loading…
Reference in a new issue