private void SetupTextureAndKernelFloatR() { _3dTexture = RenderTextureUtil.Create3D(__Size.Width, __Size.Height, __Size.Depth, RenderTextureFormat.RFloat, true); _KernelGetRFloat = _ReadWriteShader.FindKernelOrWarn(KERNELGET_RFLOAT, ref _IsReady); _KernelSetRFloat = _ReadWriteShader.FindKernelOrWarn(KERNELSET_RFLOAT, ref _IsReady); _KernelGetRFloatColor = _ReadWriteShader.FindKernelOrWarn(KERNELGET_RFLOATCOLOR, ref _IsReady); _KernelSetRFloatColor = _ReadWriteShader.FindKernelOrWarn(KERNELSET_RFLOATCOLOR, ref _IsReady); }
void Start() { w = Screen.width; h = Screen.height; moxi = new Moxi(w, h, grain, pinning); RenderTextureUtil.Build(ref debugTex, w, h); debugMat = new Material(Shader.Find("Hidden/Demo")); cam.aspect = 1; cam.transform.position = Vector3.zero; }
private void SetupTextureAndKernelRGBA() { _3dTexture = RenderTextureUtil.Create3D(__Size.Width, __Size.Height, __Size.Depth, RenderTextureFormat.ARGBFloat, true); _KernelRGBA = _ReadWriteShader.FindKernelOrWarn(SHADERKERNEL_RGBA, ref _IsReady); }
void OnDestroy() { RenderTextureUtil.Destroy(outRT); }
private void Create3DSpace() { _3DData = RenderTextureUtil.Create3D(_Width, _Height, _Depth, RenderTextureFormat.ARGB32); }