示例#1
0
            public void OnBeginRender(
                Camera camera,
                MassiveGrassProfile profile,
                Terrain terrain,
                Texture2D[]         alphaMaps,
                int maxParallelJobCount)
            {
                if (profile == null)
                {
                    return;
                }
                if (!renderers.ContainsKey(profile))
                {
                    renderers[profile] = new MassiveGrassRenderer(
                        camera,
                        terrain,
                        alphaMaps,
                        profile,
                        maxParallelJobCount);
                }

                renderers[profile].OnBeginRender();
            }
            public void OnBeginRender(
                Camera camera,
                MassiveGrassProfile profile,
                Terrain terrain,
                List <Texture2D> alphaMaps,
                int maxParallelJobCount)
            {
                if (profile == null)
                {
                    return;
                }
                if (!renderers.ContainsKey(profile))
                {
                    renderers[profile] = new MassiveGrassRenderer(
                        camera,
                        terrain,
                        alphaMaps,
                        profile,
                        maxParallelJobCount);
                    Debug.Log($" renderer for {profile} created on {camera}");
                }

                renderers[profile].OnBeginRender();
            }