private void Awake() { KERNEL_ID_Init = MainShader.FindKernel("Init"); KERNEL_ID_Render = MainShader.FindKernel("Render"); KERNEL_ID_LifeCycle = MainShader.FindKernel("LifeCycle"); StartCoroutine(doLife()); }
private void Awake() { KERNEL_ID_Render = MainShader.FindKernel("Render"); KERNEL_ID_Init = MainShader.FindKernel("Init"); KERNEL_ID_Update = MainShader.FindKernel("Update"); SLIME_BLOCK_COUNT = Mathf.CeilToInt(count / InitBlockLength); }
private void Awake() { KERNEL_ID_Render = MainShader.FindKernel("Render"); KERNEL_ID_Init = MainShader.FindKernel("Init"); KERNEL_ID_Update = MainShader.FindKernel("Update"); BOID_CYCLE_BLOCK_COUNT = Mathf.CeilToInt(count / InitBlockLength); InitComputeBuffer(); }
private void Awake() { _Camara = GetComponent <Camera>(); KERNEL_ID_Render = MainShader.FindKernel("Render"); }
private void Awake() { KERNEL_ID_Render = MainShader.FindKernel("Render"); }