2020-07-14 15:48:01 +00:00
|
|
|
/**
|
|
|
|
* @author Richard Davey <rich@photonstorm.com>
|
|
|
|
* @copyright 2020 Photon Storm Ltd.
|
|
|
|
* @license {@link https://opensource.org/licenses/MIT|MIT License}
|
|
|
|
*/
|
|
|
|
|
|
|
|
var SetIdentity = require('./SetIdentity');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Loads an identity matrix into the view matrix.
|
|
|
|
*
|
|
|
|
* @method Phaser.Renderer.WebGL.MVP.ViewIdentity
|
2020-07-31 12:41:29 +00:00
|
|
|
* @since 3.50.0
|
2020-07-14 15:48:01 +00:00
|
|
|
*
|
|
|
|
* @param {Phaser.Renderer.WebGL.Pipelines.ModelViewProjection} model - The Model View Projection object.
|
|
|
|
*
|
|
|
|
* @return {Phaser.Renderer.WebGL.Pipelines.ModelViewProjection} The Model View Projection object.
|
|
|
|
*/
|
|
|
|
var ViewIdentity = function (model)
|
|
|
|
{
|
|
|
|
SetIdentity(model.viewMatrix);
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = ViewIdentity;
|