summaryrefslogtreecommitdiff
path: root/Runtime/Camera/Renderqueue.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Camera/Renderqueue.h
+Unity Runtime codeHEADmaster
Diffstat (limited to 'Runtime/Camera/Renderqueue.h')
-rw-r--r--Runtime/Camera/Renderqueue.h23
1 files changed, 23 insertions, 0 deletions
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