Example #1
0
 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);
 }
Example #2
0
 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;
 }
Example #3
0
 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);
 }
Example #5
0
 private void Create3DSpace()
 {
     _3DData = RenderTextureUtil.Create3D(_Width, _Height, _Depth, RenderTextureFormat.ARGB32);
 }