コード例 #1
0
 public void Setup(RenderPassEvent @event, RenderTargetIdentifier source, RenderTargetHandle destination, RayMarchingProcessData data)
 {
     m_Data            = data;
     renderPassEvent   = @event;
     m_ColorAttachment = source;
     m_Destination     = destination;
     m_Materials       = new MaterialLibrary(data);
 }
コード例 #2
0
 public MaterialLibrary(RayMarchingProcessData data)
 {
     rayMarching = Load(Shader.Find("Custom/RayMarching/shadertoy"));
 }