@@ -9397,21 +9397,30 @@ var RedTextMaterial;
9397
9397
// position 계산
9398
9398
mat4 targetMatrix;
9399
9399
if(uOrthographicYn){
9400
- targetMatrix = uMMatrix;
9400
+ targetMatrix = uMMatrix * mat4(
9401
+ u_width, 0.0, 0.0, 0.0,
9402
+ 0.0, u_height, 0.0, 0.0,
9403
+ 0.0, 0.0, 1.0, 0.0,
9404
+ 0.0, 0.0, 0.0, 1.0
9405
+ ) ;
9406
+ gl_Position = uPMatrix * uCameraMatrix * targetMatrix * vec4(aVertexPosition, 1.0);
9407
+
9408
+
9401
9409
}else{
9402
9410
targetMatrix = uMMatrix * mat4(
9403
9411
u_width/uResolution.y, 0.0, 0.0, 0.0,
9404
9412
0.0, u_height/uResolution.y, 0.0, 0.0,
9405
9413
0.0, 0.0, 1.0, 0.0,
9406
9414
0.0, 0.0, 0.0, 1.0
9407
9415
) ;
9416
+ //#REDGL_DEFINE#sprite3D#true# gl_Position = uPMatrix * getSprite3DMatrix(uCameraMatrix , targetMatrix) * vec4(aVertexPosition, 1.0);
9417
+ //#REDGL_DEFINE#sprite3D#true# if(!u_PerspectiveScale){
9418
+ //#REDGL_DEFINE#sprite3D#true# gl_Position /= gl_Position.w;
9419
+ //#REDGL_DEFINE#sprite3D#true# gl_Position.xy += aVertexPosition.xy * vec2((uPMatrix * targetMatrix)[0][0],(uPMatrix * targetMatrix)[1][1]);
9420
+ //#REDGL_DEFINE#sprite3D#true# }
9421
+ //#REDGL_DEFINE#sprite3D#false# gl_Position = uPMatrix * uCameraMatrix * targetMatrix * vec4(aVertexPosition, 1.0);
9408
9422
}
9409
- //#REDGL_DEFINE#sprite3D#true# gl_Position = uPMatrix * getSprite3DMatrix(uCameraMatrix , targetMatrix) * vec4(aVertexPosition, 1.0);
9410
- //#REDGL_DEFINE#sprite3D#true# if(!u_PerspectiveScale){
9411
- //#REDGL_DEFINE#sprite3D#true# gl_Position /= gl_Position.w;
9412
- //#REDGL_DEFINE#sprite3D#true# gl_Position.xy += aVertexPosition.xy * vec2((uPMatrix * targetMatrix)[0][0],(uPMatrix * targetMatrix)[1][1]);
9413
- //#REDGL_DEFINE#sprite3D#true# }
9414
- //#REDGL_DEFINE#sprite3D#false# gl_Position = uPMatrix * uCameraMatrix * targetMatrix * vec4(aVertexPosition, 1.0);
9423
+
9415
9424
9416
9425
//#REDGL_DEFINE#directionalShadow#true# vResolution = uResolution;
9417
9426
//#REDGL_DEFINE#directionalShadow#true# vShadowPos = cTexUnitConverter * uDirectionalShadowLightMatrix * targetMatrix * vec4(aVertexPosition, 1.0);
@@ -24003,4 +24012,4 @@ var RedGLOffScreen;
24003
24012
}
24004
24013
RedWorkerCode = RedWorkerCode.toString().replace(/^function ?. ?\) ?\{|\}\;?$/g, '');
24005
24014
})();
24006
- })();var RedGL_VERSION = {version : 'RedGL Release. last update( 2019-02-28 19:57:46 )' };console.log(RedGL_VERSION);
24015
+ })();var RedGL_VERSION = {version : 'RedGL Release. last update( 2019-03-04 09:33:56 )' };console.log(RedGL_VERSION);
0 commit comments