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/Renderqueue.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Runtime/Camera/Renderqueue.h (limited to 'Runtime/Camera/Renderqueue.h') diff --git a/Runtime/Camera/Renderqueue.h b/Runtime/Camera/Renderqueue.h new file mode 100644 index 0000000..766caac --- /dev/null +++ b/Runtime/Camera/Renderqueue.h @@ -0,0 +1,23 @@ +#ifndef RENDERQUEUE_H +#define RENDERQUEUE_H + +class Transform; +class Vector4f; +class Matrix4x4f; +class LightmapSettings; +namespace Unity { class Material; } + + +void SetupObjectMatrix (const Matrix4x4f& m, int transformType); + +UInt32 GetCurrentRenderOptions (); +bool CheckShouldRenderPass (int pass, Unity::Material& material); + +bool SetupObjectLightmaps (const LightmapSettings& lightmapper, UInt32 lightmapIndex, const Vector4f& lightmapST, bool setMatrix); + + +// does a dummy render with all shaders & their combinations, so that driver actually creates them +void WarmupAllShaders (); + + +#endif -- cgit v1.1-26-g67d0