updateTextureMatrix method
void
updateTextureMatrix(
- Camera camera
Implementation
void updateTextureMatrix(Camera camera ) {
textureMatrix.setValues(
0.5, 0.0, 0.0, 0.5,
0.0, 0.5, 0.0, 0.5,
0.0, 0.0, 0.5, 0.5,
0.0, 0.0, 0.0, 1.0
);
textureMatrix.multiply( camera.projectionMatrix );
textureMatrix.multiply( camera.matrixWorldInverse );
textureMatrix.multiply( this.matrixWorld );
}