public void UpdateParameters() { switch (m_graphyManager.GraphyMode) { case GraphyManager.Mode.FULL: m_shaderGraph.ArrayMaxSize = ShaderGraph.ArrayMaxSizeFull; m_shaderGraph.Image.material = new Material(ShaderFull); m_shaderGraphHighestValues.ArrayMaxSize = ShaderGraph.ArrayMaxSizeFull; m_shaderGraphHighestValues.Image.material = new Material(ShaderFull); break; case GraphyManager.Mode.LIGHT: m_shaderGraph.ArrayMaxSize = ShaderGraph.ArrayMaxSizeLight; m_shaderGraph.Image.material = new Material(ShaderLight); m_shaderGraphHighestValues.ArrayMaxSize = ShaderGraph.ArrayMaxSizeLight; m_shaderGraphHighestValues.Image.material = new Material(ShaderLight); break; } m_shaderGraph.InitializeShader(); m_shaderGraphHighestValues.InitializeShader(); m_resolution = m_graphyManager.AudioGraphResolution; CreatePoints(); }
public void UpdateParameters() { switch (m_graphyManager.GraphyMode) { case GraphyManager.Mode.FULL: m_shaderGraphAllocated.ArrayMaxSize = ShaderGraph.ArrayMaxSizeFull; m_shaderGraphReserved.ArrayMaxSize = ShaderGraph.ArrayMaxSizeFull; m_shaderGraphMono.ArrayMaxSize = ShaderGraph.ArrayMaxSizeFull; m_shaderGraphAllocated.Image.material = new Material(ShaderFull); m_shaderGraphReserved.Image.material = new Material(ShaderFull); m_shaderGraphMono.Image.material = new Material(ShaderFull); break; case GraphyManager.Mode.LIGHT: m_shaderGraphAllocated.ArrayMaxSize = ShaderGraph.ArrayMaxSizeLight; m_shaderGraphReserved.ArrayMaxSize = ShaderGraph.ArrayMaxSizeLight; m_shaderGraphMono.ArrayMaxSize = ShaderGraph.ArrayMaxSizeLight; m_shaderGraphAllocated.Image.material = new Material(ShaderLight); m_shaderGraphReserved.Image.material = new Material(ShaderLight); m_shaderGraphMono.Image.material = new Material(ShaderLight); break; } m_shaderGraphAllocated.InitializeShader(); m_shaderGraphReserved.InitializeShader(); m_shaderGraphMono.InitializeShader(); m_resolution = m_graphyManager.RamGraphResolution; CreatePoints(); }
private void Init() { m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>(); m_ramMonitor = GetComponent <RamMonitor>(); m_shaderGraphAllocated = new ShaderGraph(); m_shaderGraphAllocated.Material = m_imageAllocated.material; m_shaderGraphAllocated.InitializeShader(); m_shaderGraphReserved = new ShaderGraph(); m_shaderGraphReserved.Material = m_imageReserved.material; m_shaderGraphReserved.InitializeShader(); m_shaderGraphMono = new ShaderGraph(); m_shaderGraphMono.Material = m_imageMono.material; m_shaderGraphMono.InitializeShader(); UpdateParameters(); }
private void Init() { m_graphyManager = transform.root.GetComponentInChildren <GraphyManager>(); m_fpsMonitor = GetComponent <FpsMonitor>(); m_shaderGraph = new ShaderGraph(); m_shaderGraph.Material = m_imageGraph.material; m_shaderGraph.InitializeShader(); UpdateParameters(); }