mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Fixed whitespace in DisplayObjectContainerIn3D
This commit is contained in:
parent
9ae4614595
commit
f4a7bb11da
1 changed files with 55 additions and 55 deletions
|
@ -558,13 +558,13 @@ package {
|
|||
pixelX *= rect.width / srcWidth;
|
||||
pixelY *= rect.height / srcHeight;
|
||||
}
|
||||
vertexData.writeFloat(TLx); // x
|
||||
vertexData.writeFloat(TLy); // y
|
||||
vertexData.writeFloat(TLx); // x
|
||||
vertexData.writeFloat(TLy); // y
|
||||
vertexData.writeFloat(0); // z - use index?
|
||||
vertexData.writeFloat(0); // u
|
||||
vertexData.writeFloat(0); // v
|
||||
vertexData.writeFloat(left); // u0
|
||||
vertexData.writeFloat(top); // v0
|
||||
vertexData.writeFloat(top); // v0
|
||||
vertexData.writeFloat(right - left); // w
|
||||
vertexData.writeFloat(bottom - top); // h
|
||||
vertexData.writeFloat(alpha);
|
||||
|
@ -577,13 +577,13 @@ package {
|
|||
vertexData.writeFloat(brightnessShift);
|
||||
vertexData.writeFloat(texIndex);
|
||||
|
||||
vertexData.writeFloat(BLx); // x
|
||||
vertexData.writeFloat(BLy); // y
|
||||
vertexData.writeFloat(BLx); // x
|
||||
vertexData.writeFloat(BLy); // y
|
||||
vertexData.writeFloat(0);
|
||||
vertexData.writeFloat(0); // u
|
||||
vertexData.writeFloat(1); // v
|
||||
vertexData.writeFloat(left); // u0
|
||||
vertexData.writeFloat(top); // v0
|
||||
vertexData.writeFloat(top); // v0
|
||||
vertexData.writeFloat(right - left); // w
|
||||
vertexData.writeFloat(bottom - top); // h
|
||||
vertexData.writeFloat(alpha);
|
||||
|
@ -596,13 +596,13 @@ package {
|
|||
vertexData.writeFloat(brightnessShift);
|
||||
vertexData.writeFloat(texIndex);
|
||||
|
||||
vertexData.writeFloat(BRx); // x
|
||||
vertexData.writeFloat(BRy); // y
|
||||
vertexData.writeFloat(BRx); // x
|
||||
vertexData.writeFloat(BRy); // y
|
||||
vertexData.writeFloat(0);
|
||||
vertexData.writeFloat(1); // u
|
||||
vertexData.writeFloat(1); // v
|
||||
vertexData.writeFloat(left); // u0
|
||||
vertexData.writeFloat(top); // v0
|
||||
vertexData.writeFloat(top); // v0
|
||||
vertexData.writeFloat(right - left); // w
|
||||
vertexData.writeFloat(bottom - top); // h
|
||||
vertexData.writeFloat(alpha);
|
||||
|
@ -615,13 +615,13 @@ package {
|
|||
vertexData.writeFloat(brightnessShift);
|
||||
vertexData.writeFloat(texIndex);
|
||||
|
||||
vertexData.writeFloat(TRx); // x
|
||||
vertexData.writeFloat(TRy); // y
|
||||
vertexData.writeFloat(TRx); // x
|
||||
vertexData.writeFloat(TRy); // y
|
||||
vertexData.writeFloat(0);
|
||||
vertexData.writeFloat(1); // u
|
||||
vertexData.writeFloat(0); // v
|
||||
vertexData.writeFloat(left); // u0
|
||||
vertexData.writeFloat(top); // v0
|
||||
vertexData.writeFloat(top); // v0
|
||||
vertexData.writeFloat(right - left); // w
|
||||
vertexData.writeFloat(bottom - top); // h
|
||||
vertexData.writeFloat(alpha);
|
||||
|
@ -1592,8 +1592,8 @@ package {
|
|||
"sat ft1.xyz, ft7.xyz\n"+ // Move the shifted color into ft1
|
||||
|
||||
/*** Ghost effect ***/
|
||||
"mul ft1.w, ft1.w, v1.z\n"+ // varying alpha in v1.z
|
||||
"mov oc, ft1\n" // fill ft0.x with v0.x and ft0.w with v0.w
|
||||
"mul ft1.w, ft1.w, v1.z\n"+ // varying alpha in v1.z
|
||||
"mov oc, ft1\n" // fill ft0.x with v0.x and ft0.w with v0.w
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue