UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.

11 lines (10 loc) 321 B
module.exports = [ 'float inverseRotation = -rotation - uCamera.z;', 'float irSine = sin(inverseRotation);', 'float irCosine = cos(inverseRotation);', 'outInverseRotationMatrix = mat3(', ' irCosine, irSine, 0.0,', ' -irSine, irCosine, 0.0,', ' 0.0, 0.0, 1.0', ');', ].join('\n');