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.Collections.Generic; | |
using UnityEditor; | |
using UnityEditor.Build; | |
using UnityEditor.Rendering; | |
using UnityEngine; | |
using UnityEngine.Rendering; | |
class ShaderBuildProcessor : IPreprocessShaders | |
{ | |
ShaderVariantCollection whitelist; |
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
#define BAKERY_INV_PI 0.31830988618f | |
sampler2D _RNM0, _RNM1, _RNM2; | |
void LightmapUV_float(float2 uv, out float2 lightmapUV) | |
{ | |
lightmapUV = uv * unity_LightmapST.xy + unity_LightmapST.zw; | |
} | |
void DecodeLightmap(float4 lightmap, out float3 result) |
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
#pragma once | |
#include "alphaBufferGenInterface.h" | |
#include "uvGBufferGenInterface.h" | |
#include "BakeryHelperInterface.h" | |
#include "stdint.h" | |
#include <cstdio> | |
#include <vector> | |
#include <string> | |
namespace Bakery |