From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Camera/RenderLoops/BuiltinShaderParamUtility.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Runtime/Camera/RenderLoops/BuiltinShaderParamUtility.h (limited to 'Runtime/Camera/RenderLoops/BuiltinShaderParamUtility.h') diff --git a/Runtime/Camera/RenderLoops/BuiltinShaderParamUtility.h b/Runtime/Camera/RenderLoops/BuiltinShaderParamUtility.h new file mode 100644 index 0000000..7b480ed --- /dev/null +++ b/Runtime/Camera/RenderLoops/BuiltinShaderParamUtility.h @@ -0,0 +1,11 @@ +#pragma once + + +///@TODO: This should probably be 0. But for now we don't have proper ifdef support for switching to a different subshader. +#define LOD_FADE_DISABLED 0.999F + +#define LOD_FADE_BATCH_EPSILON 0.0625 // 1/16 + +class GfxDevice; + +void SetObjectScale (GfxDevice& device, float lodFade, float invScale); -- cgit v1.1-26-g67d0