This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UNITY_MATRIX_IT_MV[0].xyz = ??? | |
UNITY_MATRIX_IT_MV[1].xyz = Camera Up | |
UNITY_MATRIX_IT_MV[2].xyz = Camera Forward | |
float3 forward = -normalize(UNITY_MATRIX_V._m20_m21_m22); | |
cameraFwd = -unity_MatrixInvV._m02_m12_m22; | |
float3 up = normalize(UNITY_MATRIX_V._m10_m11_m12); | |
float3 right = normalize(UNITY_MATRIX_V._m00_m01_m02); | |
float3 cameraUp = unity_CameraInvProjection[1].xyz; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string CalculateObbDigest(string file) | |
{ | |
byte[] arrayOfByte = null; | |
using (var localMessageDigest = MD5.Create()) | |
using (var localFileInputStream = File.OpenRead(file)) | |
{ | |
long l1 = localFileInputStream.Length; | |
localFileInputStream.Seek(l1 - Math.Min(l1, 65558L), SeekOrigin.Current); | |
arrayOfByte = localMessageDigest.ComputeHash(localFileInputStream); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#coding: utf8 | |
import os | |
import sys | |
print(str(sys.argv)) | |
obb =sys.argv[1] | |
def md5(file): |