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
Shader "Diffuse Lightmap" { | |
Properties { | |
_MainTex ("Texture 1", 2D) = "white" {} | |
} | |
SubShader { | |
Tags { "RenderType" = "Opaque" } | |
Pass { |
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
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
public static class PostBuildTrigger | |
{ | |
private static DirectoryInfo targetdir; | |
private static string buildname; | |
private static string buildDataDir; |
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
void SplitYUVPlanes(int width, int height, unsigned char *data, int size, unsigned char *yuvInput[3]) | |
{ | |
// live input *data is YUV444 Packed | |
// Conversion from 444 Packed -> 444 Planar | |
int index = 0; | |
int srcStride = size; | |
// need to flip image from bottom-up to top-down | |
int revheight = height - 1; | |
NewerOlder